Re: Re: ${}

From: Date: Wed, 25 Apr 2007 22:37:55 +0000
Subject: Re: Re: ${}
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-253802@lists.php.net to get a copy of this message
On Wed, April 25, 2007 9:19 am, Man-wai Chang wrote: >> $var1 = "Something " + PHP Notice >> $var2 = "Something Hmmm_that"; > > I wonder whether Smarty's way of specifying variables is based on > this... Smarty came "before" PHP's use of {} in embedded quotes and the aborted attempt to make that the string-as-array operator, I think. There are only so many ASCII non-alphanumeric symbols available on the keyboard. When you need an opening/closing "pair" the options get very limited indeed. When < and > are already taken by HTML, and ( and ) are more common in normal text, the choice of { and } is pretty much the obvious choice. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#253802) next »