I've got a 2D array in PHP that looks like this:
$pi = 0;
$pf[$pi][0] = 0;
$pf[$pi][1] = 0;
$pf[$pi][2] = 1;
$pf[$pi][3] = 1;
$pf[$pi][4] = "Johnny come lately";
$pf[$pi][5] = 7;
$pi++;
$pf[$pi][0] = 0;
$pf[$pi][1] = 0;
$pf[$pi][2] = 1;
$pf[$pi][3] = 2;
$pf[$pi][4] = "Peter Pan went to town";
$pf[$pi][5] = 14;
$pi++;
$pf[$pi][0] = 0;
$pf[$pi][1] = 0;
$pf[$pi][2] = 1;
$pf[$pi][3] = 3;
$pf[$pi][4] = "The elf was weaned";
$pf[$pi][5] = 6;
ETC
How do I get this array into javascript so I can therein manipulate it?
Thanks for your time - Meir
$pi = 0;
$pf[$pi][0] = 0;
$pf[$pi][1] = 0;
$pf[$pi][2] = 1;
$pf[$pi][3] = 1;
$pf[$pi][4] = "Johnny come lately";
$pf[$pi][5] = 7;
$pi++;
$pf[$pi][0] = 0;
$pf[$pi][1] = 0;
$pf[$pi][2] = 1;
$pf[$pi][3] = 2;
$pf[$pi][4] = "Peter Pan went to town";
$pf[$pi][5] = 14;
$pi++;
$pf[$pi][0] = 0;
$pf[$pi][1] = 0;
$pf[$pi][2] = 1;
$pf[$pi][3] = 3;
$pf[$pi][4] = "The elf was weaned";
$pf[$pi][5] = 6;
ETC
How do I get this array into javascript so I can therein manipulate it?
Thanks for your time - Meir