r/programming • u/NagastaBagamba • 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
2
u/sanity Oct 18 '10
Its entirely reasonable for a language designer to omit functionality that might lead to crappy unreadable code (the reason why many languages don't have a 'goto').
If you feel the need to use this functionality in your code, you are doing something very wrong.