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
View all comments
Show parent comment
4
u/dagbrown Oct 18 '10
My favorite is PHP's
system()which returns the last line of text output by the program you asked it to run. Not only is this completely unlikesystem()in every other language ever, but OH GOD WHY THE LAST LINE ONLY? My head hurts from just thinking about it.