Quote:
Originally Posted by Rapidwolve
What does
PHP Code:
prefix.varname;
do? Is there really a point to it? does it declare it or something
|
Yes, I use that for temp variables only, it declares the variable as a temp so it can be referenced without the use of
temp.
When you have variables defined in function parameters they're declared as temp variables and you're able to reference them with or without the
temp. before the variable name, this is the same idea.
I place all the temp declarations at the beginning so I know what all I'm using and can make notes for other people using it.