Date: 12/29/00
- Next message: Richard Lynch: "Re: [PHP] How secure is this?"
- Previous message: Richard Lynch: "Re: [PHP] pfsockopen"
- In reply to: Hendry Sumilo: "[PHP] Echo of multi dimension array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> $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>
- Next message: Richard Lynch: "Re: [PHP] How secure is this?"
- Previous message: Richard Lynch: "Re: [PHP] pfsockopen"
- In reply to: Hendry Sumilo: "[PHP] Echo of multi dimension array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

