PHP Array à JS
var arrNums = json_encode(<?php echo $arrNums; ?>);
Azanda
var arrNums = json_encode(<?php echo $arrNums; ?>);
var js_array = [<?php echo '"'.implode('","', $disabledDaysRange ).'"' ?>];
//in js do this
var masterarray = <?php echo '["' . implode('", "', $masterarray) . '"]' ?>;