Answers for "how to pass array from php to js"

PHP
0

dump php array into javascript array

//in js do this
var masterarray =  <?php echo '["' . implode('", "', $masterarray) . '"]' ?>;
Posted by: Guest on November-02-2020

Code answers related to "how to pass array from php to js"

Browse Popular Code Answers by Language