copy php array to javascript
snippet in php

copy php array to javascript

user4930

var js_array = [<?php echo '"'.implode('","', $php_array).'"' ?>];