Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$s = '{"":123, "a":456}';
var_dump( json_decode($s) );
//object(stdClass)#1 (2) {
// ["_empty_"]=>
// int(123)
// ["a"]=>
// int(456)
//}
<?php
$s = '{"":123, "_empty_":456}';
var_dump( json_decode($s) );
//object(stdClass)#1 (1) {
// ["_empty_"]=>
// int(456)
//}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.