convert php associative array to javascript array code example
Example 1: php transform associative array to array
$array = array_values($array);
Example 2: php array to js
var arrNums = json_encode(<?php echo $arrNums; ?>);
$array = array_values($array);
var arrNums = json_encode(<?php echo $arrNums; ?>);