Re: [PHP] pass globals to functions???

2002-10-25 Thread Jason Wong
On Friday 25 October 2002 03:52, Shawn McKenzie wrote: > Some have eluded to this but I haven't seen a working example. I would > like to declare globals in my main script and then inside functions that > need these globals just somehow use the $GLOBALS or something to declare > the variables glob

RE: [PHP] pass globals to functions???

2002-10-24 Thread Johnson, Kirk
"; } function test2() { echo "foo is {$GLOBALS['foo']}"; } ?> Kirk > Some have eluded to this but I haven't seen a working > example. I would like > to declare globals in my main script and then inside > functions that need > these globals just somehow use the $GLOBALS or something to >