A quesiton about arrays and indexes
| From: | David Johansen | Date: | Sat, 30 Mar 2002 00:19:46 +0000 |
| Subject: | A quesiton about arrays and indexes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90733@lists.php.net to get a copy of this message | ||
Ok, I have a question about arrays and indexes. Something weird happens when
I try this:
echo "<td>week[$i][$j]: $week[$i][$k][0]</td>";
Of course $i and $j have their appropriate values. It just prints out
Array[0][4] (0 and 4 being the values of $i and $k, but if I do the code
below it works just fine. Is there something I'm just not getting or
something?
$temp = $week[$i][$k][0];
echo "<td>week[$i][$j]: $temp</td>";
THanks,
Dave