Created
January 18, 2016 16:22
-
-
Save 3ffusi0on/922e5a0338b6c0f83d4f to your computer and use it in GitHub Desktop.
Passing PHP Arrays to JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var array = <?php echo '["' . implode('", "', $array) . '"]' ?>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment