Complex arrays inside quoted strings either need to be escaped with {}'s or drop out of the quoted string to display them. ie.
echo "<td>".$week[$i][$j].": ".$week[$i][$k][0]."</td>"; or echo "<td>${week[$i][$j]}: ${week[$i][$k][0]}</td>"; -Rasmus On Fri, 29 Mar 2002, David Johansen wrote: > 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 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php