Created
November 25, 2009 07:21
-
-
Save fujiwara/242542 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
print json_encode(array(0 => 'foo', 1 => 'bar')); | |
print json_encode(array(1 => 'foo', 0 => 'bar')); | |
?> | |
["foo","bar"]{"1":"foo","0":"bar"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment