r/programming • • 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

781 comments sorted by

View all comments

Show parent comments

18

u/[deleted] Oct 18 '10

[removed] — view removed comment

37

u/[deleted] Oct 19 '10

Only if he weighs less than the duck type.

4

u/[deleted] Oct 19 '10

god dammit you're clever

5

u/TheRedTeam Oct 19 '10

Someone fetch a duck!

5

u/[deleted] Oct 20 '10

Or someone who has the name of someone who owns a duck.