* Thus wrote Ford, Mike               [LSS] ([EMAIL PROTECTED]):
> > -----Original Message-----
> > From: Ivo Fokkema [mailto:[EMAIL PROTECTED]
> > Sent: 13 August 2003 15:45
> > 
> > "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > 
> > As far as I know, no defined variable is global by default. 
> > If you would
> > really need this variable to be global, you'll need to do a
> > 
> > global $test;
> > 
> > to make $test global.
> 
> Absolute rubbish!!  ALL variables used in the global scope are automatically
> global and available in the superglobal array $GLOBALS.  You're confusing
> this with the issue that global variables are not automatically accessible
> within functions but must be "imported" with the global statement.  (And a
> global statement in the gloabl scope has absolutely no effect whatsoever.)

I also believe php gives a warning/error about globaling a global
var in global scope.

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to