Salin array php ke javascript
var js_array = [<?php echo '"'.implode('","', $php_array).'"' ?>];
Jolly Jaguar
var js_array = [<?php echo '"'.implode('","', $php_array).'"' ?>];