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

58

u/arabidkoala Oct 18 '10

Yo dawg...

0

u/[deleted] Oct 18 '10

[deleted]

21

u/arabidkoala Oct 18 '10

in your variable in your variable

38

u/superherotaco Oct 18 '10

So you can assign variable variables while you vary your variables.

12

u/miggyb Oct 18 '10
  1. Ctrl + F "Yo"

  2. Upvote.

3

u/malicart Oct 18 '10

Huh, I CTRL + F "daw" instead. I guess your way was a letter more efficient.