Posted By

whak on 12/11/10


javascript php array json

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


PHP Array into Javascript Array with JSON

 / Published in: PHP

  1. foreach($array as $key=>$value) {
  2. echo "js_array['$key'] = '$value';\n";
  3. }

Report this snippet  

You need to login to post a comment.