convert javascript array to php array code example
Example 1: convert a php array into a javascript array
var js_array = [<?php echo '"'.implode('","', $disabledDaysRange ).'"' ?>];
Example 2: dump php array into javascript array
//in js do this
var masterarray = <?php echo '["' . implode('", "', $masterarray) . '"]' ?>;