Do whatever you want, whatever is easier for you.
I'd use $_GET['var'], personally, just because it's a waste of time and
memory to assign it to another variable, plus you don't have to worry
about passing variables to function, classes, etc...
---John Holmes...
> -Original Message-
> F
There is no better or worse. The new superglobals
were introduced in PHP 4.1.0. Use them how you wish.
Also consider extract() and/or import_request_variables().
Personally I like:
import_request_variables('gpc', 'r_');
Which in your example would result in:
print $r_var;
But it d
2 matches
Mail list logo