Re: php7- dropping the $ from the variable name - rfc

From: Date: Thu, 18 Sep 2008 19:25:07 +0000
Subject: Re: php7- dropping the $ from the variable name - rfc
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-40556@lists.php.net to get a copy of this message
On Thu, Sep 18, 2008 at 9:09 PM, Arvids Godjuks <arvids.godjuks@gmail.com> wrote: > Well, you can do that right now, PHP supports that for ages. > > <?php > $myVar = 'print'; > $myVar('Hello!'); // Outputs hello > ?> Partly because I can't resist being smug, partly because it might confuse someone, I have to point out that that example won't work, because pint isn't a function. It would work with most everything else though. -- troels

« previous php.internals (#40556) next »