Konversi array PHP menjadi array JavaScript
var js_array = [<?php echo '"'.implode('","', $disabledDaysRange ).'"' ?>];
Adventurous Anaconda
var js_array = [<?php echo '"'.implode('","', $disabledDaysRange ).'"' ?>];
//in js do this
var masterarray = <?php echo '["' . implode('", "', $masterarray) . '"]' ?>;