Return to Snippet

Revision: 37551
at December 11, 2010 17:52 by whak


Initial Code
foreach($array as $key=>$value) {
   echo "js_array['$key'] = '$value';\n";
}

Initial URL

                                

Initial Description

                                

Initial Title
PHP Array into Javascript Array with JSON

Initial Tags
javascript, php, array, json

Initial Language
PHP