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

From: Date: Thu, 18 Sep 2008 19:47:23 +0000
Subject: Re: php7- dropping the $ from the variable name - rfc
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-40558@lists.php.net to get a copy of this message
On Thu, Sep 18, 2008 at 12:25 PM, troels knak-nielsen <troelskn@gmail.com> wrote: > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > You're right, "pint" isn't a function, and neither is "print". ;) -- Jordan Ryan Moore

« previous php.internals (#40558) next »