Answers for "how to make use of php array to javascript"

PHP
2

php array to js

var arrNums = json_encode(<?php echo $arrNums; ?>);
Posted by: Guest on June-22-2020
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 make use of php array to javascript"

Browse Popular Code Answers by Language