From: Adam M. <ad...@tu...> - 2002-08-08 16:51:21
|
I have found that the easiest way to write code using the predefined arrays provided by PHP is like this: $GLOBALS["core"]->function($var); $GLOBALS["CNT_module"] .= $string; $_SESSION["OBJ_user"]->user_id; That's just a few examples but it should give you the idea. If you place an extract($GLOBALS) at the beginning of your function you run the risk of having duplicate variable names in your function and clobbering their appropriate values or getting some data back that you did not intend in the current function or later in the script. I hope that makes sense... Adam --------------------------------- Adam Morton Developer - Web Technology Group Appalachian State University http://phpwebsite.appstate.edu ad...@tu... |