Below are revisions for this snippet.

Converts a PHP Array into a JavaScript Array





Syndication

Revision Revison 1
Given a PHP array (even a deep nested array), returns a string representation of that array as JavaScript array. Useful when using PHP to output JavaScript.