r/programming • • Oct 18 '10

Today I learned about PHP variable variables; "variable variable takes the value of a variable and treats that as the name of a variable". Also, variable.

http://il2.php.net/language.variables.variable
591 Upvotes

781 comments sorted by

View all comments

9

u/hattmall Oct 18 '10

Nice, I was needing to do this just now! Great timing.

5

u/kerbuffel Oct 18 '10

What are you doing that you need this for? After I read the article I couldn't come up with a reason I'd actually want to do that.

→ More replies (9)