Re: Echo of multi dimension array
| From: | Marcelo Gulin | Date: | Tue, 02 Jan 2001 19:59:30 +0000 |
| Subject: | Re: Echo of multi dimension array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32314@lists.php.net to get a copy of this message | ||
Hi Ignacio!
try this line of code.
echo "<td>" . $daily[2][2] . "</td>";
hope it helps you
regards
Marcelo Gulin
Ignacio Vazquez-Abrams escribió:
>
> On Fri, 29 Dec 2000, Hendry Sumilo wrote:
>
> > Dear Expert,
> >
> > I have problem with multi-dimension array
> >
> > the case is like this:
> >
> > $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?
> >
> > Thank you very much
> >
> > Sincerely yours
> >
> > Hendry Sumilo
> > hsumilo@hotmail.com
> >
>
> Try:
>
> echo "<td>{$daily[2][2]}</td>";
>
> --
> Ignacio Vazquez-Abrams <ignacio@openservices.net>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net