globalize vs pass as argument
Posted: Sun Dec 14, 2003 12:19 pm
Well, the topic is pretty much my question. On the project I am working on I chose to set 'important variables' as session variables and the globalize them (global $HTTP_SESSTION_VARS;) so that they can be accessed within functions. However, I could also call the function and pass that variable as a argument. But my question is, which method do you prefer? Which is safer?