>  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]

Reply via email to