Dear All
I have a PHP file going to write a two-dimensional array in javascript:
<?php
print "<script language='javascript'>";
print " extra[0][0]=new Array(1,'Bob',12);";
print " extra[0][1]=new Array(2,'Alice',18);";
..
// need to assign the extra[1][0],extra[1][1] so on.
print "</script>";
?>
Mu.js:
var extra=new Array();
...
Any suggestion to assign the two-dimensional array from PHP to a javascript variable?