Answers for "json dadat to array php"

PHP
0

php json data to array

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.
Posted by: Guest on October-15-2021

Browse Popular Code Answers by Language