lulus variabel php ke javascript
//passing PHP variable to JavaScript
var myJSVar = <?php echo json_encode($myPHPVar); ?>;
Grepper
//passing PHP variable to JavaScript
var myJSVar = <?php echo json_encode($myPHPVar); ?>;
var Json = <?php echo json_encode($myPHPVar); ?>;