note 96135 added to function.json-encode
| From: | niek at signet dot nl | Date: | Wed, 10 Feb 2010 16:55:40 +0000 |
| Subject: | note 96135 added to function.json-encode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165834@lists.php.net to get a copy of this message | ||
@ olivier dot pons dot no dot spam at gmail dot com:
That is because JavaScript does not support Associative Arrays.
It only supports objects, which can be threated as associative arrays like you know them in PHP.
So, PHP is only being correct here :) It won't "recognize" an associative array
because javascript officially doesn't support those.
More information can be found on this site: http://blog.persistent.info/2004/08/javascript-associative-arrays.html
----
Server IP: 69.147.83.197
Probable Submitter: 217.21.241.230
----
Manual Page -- http://www.php.net/manual/en/function.json-encode.php
Edit -- https://master.php.net/note/edit/96135
Del: integrated -- https://master.php.net/note/delete/96135/integrated
Del: useless -- https://master.php.net/note/delete/96135/useless
Del: bad code -- https://master.php.net/note/delete/96135/bad+code
Del: spam -- https://master.php.net/note/delete/96135/spam
Del: non-english -- https://master.php.net/note/delete/96135/non-english
Del: in docs -- https://master.php.net/note/delete/96135/in+docs
Del: other reasons-- https://master.php.net/note/delete/96135
Reject -- https://master.php.net/note/reject/96135
Search -- https://master.php.net/manage/user-notes.php