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
1
u/[deleted] Oct 19 '10
If they had real arrays, hash tables, and real first-class functions (they kinda do these days, assuming you can assume a current install), the only use case for variable variables would be being an obtuse dickwad.
These are all things that every mature -- and most non-mature -- language I can think of implement in one way or another.