SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Dec 24, 2000, 20:33 #1
- Join Date
- Aug 2000
- Location
- Silicon Valley
- Posts
- 2,241
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Can I pass the $GLOBALS array into the function so I get access to all of the variables passed to the script?
Thanks- Son Nguyen
AdSpeed.com - Ad Serving and Ad Management Made Easy
-
Dec 24, 2000, 22:58 #2
- Join Date
- May 2000
- Location
- Canada
- Posts
- 533
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
well, an educated guess:
I'd say if you pass $GLOBALS into a function, by
global $GLOBALS
then you would have access to all the variables $GLOBALS stores VIA $GLOBALS array, not just by the variable names...
By the way, i heard you're from waterloo, me too (well not now), give me a shout when you get bored, icq 28857142
--------------------
SitePoint Community Advisor
my PHP host: when you want a REAL host
Bookmarks