Converting such an array from PHP to JavaScript?

Posted by dfjhdfjhdf on Stack Overflow See other posts from Stack Overflow or by dfjhdfjhdf
Published on 2010-05-31T13:41:33Z Indexed on 2010/05/31 13:42 UTC
Read the original article Hit count: 105

Filed under:

How to convert such an array from PHP to JavaScript?:

$arr = array('oneKey' => array('key1' => 'value1',
                               'key2' => 'value2'),
             'anotherKey => array('key1 => 'value1',
                                  'key2 => 'value2'));

© Stack Overflow or respective owner

Related posts about JavaScript