Search This Blog

Monday, July 15, 2013

json - json_encode/json_decode - returns stdClass instead of Array in PHP - Stack Overflow

json - json_encode/json_decode - returns stdClass instead of Array in PHP - Stack Overflow:

Take a closer look at the second parameter of json_decode($json, $assoc, $depth) athttp://docs.php.net/json_decode

$arrayDecoded = json_decode($arrayEncoded, true);
gives you an array.

No comments:

Post a Comment