note 96135 deleted from function.json-encode by danbrown
| From: | danbrown@php.net | Date: | Wed, 10 Feb 2010 16:57:33 +0000 |
| Subject: | note 96135 deleted from function.json-encode by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165835@lists.php.net to get a copy of this message | ||
Note Submitter: niek at signet dot nl
----
@ 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