Posted by ojorus on 05/18/06 10:54
Hi!
Just two short questions..:
1) In a function I want to get the value of a global variable declared
outside the function. Should I use "global $variable" or $GLOBALS[variable]?
Are there any differences in performance or other aspects which should make
me choose the one thing or the other?
2) Generally, is it better to pass arguments to the function instead?
Ole J
[Back to original message]
|