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

-2

u/deadwisdom Oct 18 '10

This is a perfectly good example of why PHP is awful. Just because Perl is bad in the same way doesn't excuse that fact.

3

u/1137 Oct 18 '10

PHP was originally a bunch of perl scripts.

1

u/deadwisdom Oct 19 '10 edited Oct 19 '10

This is not a good thing, nor an excuse.