can someone help me understand the following:
<?
$foo["travis"]["first"];
$foo["travis"]["second"];
$foo["wyndell"]["first"];
$foo["wyndell"]["second"];
foreach($outer = 0; $outer < count($foo); $outer++) {
foreach($outter as $inner => $value) {
echo "\$foo[$outer][$inner] =
$value<BR>";
}
}
?>
Question:
how can $outter be assigned again? I mean what will the values of $inner and $value be?
I have problems with nested arrays, and want you to help since you do a great job at this!
<?
$foo["travis"]["first"];
$foo["travis"]["second"];
$foo["wyndell"]["first"];
$foo["wyndell"]["second"];
foreach($outer = 0; $outer < count($foo); $outer++) {
foreach($outter as $inner => $value) {
echo "\$foo[$outer][$inner] =
$value<BR>";
}
}
?>
Question:
how can $outter be assigned again? I mean what will the values of $inner and $value be?
I have problems with nested arrays, and want you to help since you do a great job at this!