> I believe you use globals $var to ACCESS a global variable, not to > define. That's correct. To be perfectly correct here, what you are doing is creating a reference to the global variable. Think of it as an alias to the same variable as the global variable. global $foo; would be equivalent to: $foo = & $GLOBALS['foo']; With the latter giving you the ability to use a different name for the local reference to the globally-scoped variable. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
- [PHP] PHP globals aren't really globals Christian Dechery
- Re: [PHP] PHP globals aren't really globals Thierry Coopman
- Re: [PHP] PHP globals aren't really globals Rasmus Lerdorf
- Re: [PHP] PHP globals aren't really globals Rog
- Re: [PHP] PHP globals aren't really global... John Vanderbeck
- Re: [PHP] PHP globals aren't really globals Christian Dechery
- Re: [PHP] PHP globals aren't really globals John Monfort
- RE: [PHP] PHP globals aren't really globals Rasmus Lerdorf
- RE: [PHP] PHP globals aren't really globals Boget, Chris
- RE: [PHP] PHP globals aren't really globals Christian Dechery
- RE: [PHP] PHP globals aren't really globals Boget, Chris
- Re: [PHP] PHP globals aren't really globals John Vanderbeck
- Re: [PHP] PHP globals aren't really globals Michael McGlothlin
- RE: [PHP] PHP globals aren't really globals Maxim Maletsky
- RE: [PHP] PHP globals aren't really globals php3