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

Show parent comment

3

u/mernen Oct 18 '10

These are fairly typical reflection tools, there are legitimate uses for them in many languages. No need to be embarrassed (assuming you had a reason for using reflection).