Re: coding standards - draft

From: Date: Fri, 28 Dec 2001 21:54:29 +0000
Subject: Re: coding standards - draft
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969340441@lists.php.net to get a copy of this message
> > This makes sense as $beers is not a set variable. {$beer}s works too > > though, seems okay that both work. Anyway, this isn't an array ;-)) > > 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 :) The simple/complex separation seems to show people what you can and cannot do with {braces}. That's what comes to mind at least. *shrugs* It all seems "complex". Through the coming days I'll give it more thought :) Regards, Philip Olson

« previous php.doc (#969340441) next »