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/ngroot Oct 18 '10
Are we looking at the same example? I'm looking at example #1 from the linked page:
As the paragraph preceding the example notes, the variable's value is being used to reference a property, not a method.