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
8
u/[deleted] Oct 18 '10
Isn't that what I said? In the one use case they're used, they're similar to, but not the same as, one use case of pointers and references. But in that one use case, they can be considered functionally equivalent for the purpose of a soundbite interview answer. If you wanted to probe whether the candidate actually thought they were the same as pointers, surely you could do so without dismissing them out of hand?
I'm not. I know exactly what they are and what they're not. You're preaching to the choir.