[Solved] Php parse to javascript variable or array [duplicate]


you can always create a div use your php code that has an unique id and concatenate all your $arrays in the div, then just use something like the following in javascript to get your values

var x=document.getElementById("your_div_id");
alert(x.innerHTML);

  

solved Php parse to javascript variable or array [duplicate]