Best method for converting a PHP array to javascript

json_encode. See http://us3.php.net/manual/en/function.json-encode.php

Leave a Comment