Re: coding standards - draft
| From: | Gabor Hojtsy | Date: | Fri, 28 Dec 2001 22:49:31 +0000 |
| Subject: | Re: coding standards - draft | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969340450@lists.php.net to get a copy of this message | ||
> > OK, can you give an example you can do with ${} but you can't with
> > {$} and the opposite? Would be nice to clear at least my mind about
> > that :) We may include an example in the manual to show people
> > why we have two "frighteningly" similar things for the same thing
> >
> > echo "this is ${bar}";
> > echo "this is {$bar}";
>
> Hmm :) Variable variables come to mind but then again ${$var} can be seen
> as a mix of both :)
That is something indicates, why both works, and should work, and
why ${varname[1]} should not. But it works as you reported... Hm...
Goba