two dimensional array in php example
<?php
$myarray = array(); $myarray[0] = array(1,2,3,4); $myarray[1] = array(5,6,7,8); // foreach($myarray as $v) {
foreach($v as $myv) {
echo "$myv<br>";
}
} //prints 1 through 8 on screen ?>
<?php
$myarray = array(); $myarray[0] = array(1,2,3,4); $myarray[1] = array(5,6,7,8); // foreach($myarray as $v) {
foreach($v as $myv) {
echo "$myv<br>";
}
} //prints 1 through 8 on screen ?>