Re: cvs: /phpdoc/language types.sgml
| From: | Lars Torben Wilson | Date: | Mon, 15 Nov 1999 00:46:55 +0000 |
| Subject: | Re: cvs: /phpdoc/language types.sgml | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-12542@lists.php.net to get a copy of this message | ||
Lars Torben Wilson writes:
> Andrei Zmievski writes:
> > That's exactly why PHP 4 supports the following syntax:
> >
> > echo "This will work: ${a[3][bar]}";
>
> I thought I'd read something about that somewhere. However, PHP4
> (recent CVS) barfs on that syntax:
>
> <?php
> $a[3]['bar'] = 'Bob';
> echo "This won't work: ${a[3][bar]}";
> ?>
Just to follow up on myself--the reason it barfs is 'cause it should
be:
echo "This won't work: {$a[3][bar]}";
This works fine. Thanks for the note, Andrei.
Torben