how to assing an php array in a js array code example
Example: set array in javascript from php
//set array in javascript from php array
var jsarry = <?php echo '["' . implode('", "', $phparry) . '"]' ?>;
//set array in javascript from php array
var jsarry = <?php echo '["' . implode('", "', $phparry) . '"]' ?>;