NYCPHP Meetup

NYPHP.org

[nycphp-talk] Variable composition: ${'foo'.$i}

justin justin at justinhileman.info
Mon Jan 27 21:44:17 EST 2014


On Monday, January 27, 2014, Ron Guerin <ron at vnetworx.net> wrote:

> On 01/27/2014 06:46 PM, Jeff Slutz wrote:
> > I've known it by the term variable variables.
> >
> > http://www.php.net/manual/en/language.variables.variable.php
>
> I /knew/ I was asking a stupid question...  I know $$foo is a "variable
> variable", but for some reason I didn't connect it with ${'foo'.$i} .
>


The best thing ever written on the subject of variable variables:

http://www.reddit.com/r/programming/comments/dst56/today_i_learned_about_php_variable_variables/c12np38

--justin



-- 
http://justinhileman.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20140127/4bdcc2d9/attachment.html>


More information about the talk mailing list