Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のような文字列を受け取りました。
id=123&nid=28&ntype=content&text=This%20is%20a%20note
このデータを JSON に変更する必要があります。PHP に組み込み関数やカスタム関数はありますか?
$tmp = parse_str($string); echo json_encode($tmp);