Re: Re: ${}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux