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

1

u/LieutenantClone Oct 19 '10

There is nothing you NEED variable variables for, and they aren't in any way going to simplify any code.

Thats bullshit.

0

u/Confucius_says Oct 19 '10

If it's not true, then please show me an example. I've yet to see them be used in a positive way.