This question already has an answer here:
- Convert php array to Javascript 10 answers
I am unable to figure out how to assign PHP
array to jQuery
array?.
I want to do something like the following:
var jQueryArray = <?php $phpArray; ?>;
Can anyone tell me how I can do this?