Re: Echo of multi dimension array

From: Date: Fri, 29 Dec 2000 22:57:12 +0000
Subject: Re: Echo of multi dimension array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32245@lists.php.net to get a copy of this message
> $daily[2][2]="hendry"; > > case 1: > echo $daily[2][2]; --> it will print hendry > case 2 : > echo "<td>$daily[2][2]</td>"; --->it will print array[2] > > Can i know what the problem is? Don't do that. PHP can only interpret simple variables and 1-D arrays inside of quotes. Do this: echo "<td>", $daily[2][2], "</TD>";

« previous php.general (#32245) next »