Answers for "which function is used to convert array in json in 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

Code answers related to "which function is used to convert array in json in php"

Browse Popular Code Answers by Language