Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #json #data #array
ADD COMMENT
Topic
Name
3+3 =