📜  json 到数组 php 代码示例

📅  最后修改于: 2022-03-11 14:54:46.588000             🧑  作者: Mango

代码示例6
json_decode('{foo:"bar"}');         // this fails
json_decode('{"foo":"bar"}', true); // returns array("foo" => "bar")
json_decode('{"foo":"bar"}');       // returns an object, not an array.