Re: [PHP] Echo of multi dimension array From: Richard Lynch (richard <email protected>)
Date: 12/29/00

> $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>";

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>