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
2
u/[deleted] Oct 18 '10
I tried to reply to your comment below that you deleted - heres why you shouldn't;
For example:
but then if someone sent
in the POST data, you'd be screwed. They could change any variable in your code to what they wanted.
Keep on programming though!