Re: Super globals ?

From: Date: Sat, 20 Aug 2005 12:02:15 +0000
Subject: Re: Super globals ?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-221005@lists.php.net to get a copy of this message
This one time, at band camp, Jasper Bryant-Greene <jasper@bryant-greene.name> wrote: > Because he asked for superglobals, not globals. $GLOBALS (not $_GLOBALS) meh, force of habit > happens to be an example of a superglobal. and variable can be set within its scope, so why not use it? As we see in the manual at $GLOBALS _is_ a super global and available to all scopes within the script. http://www.php.net/manual/en/reserved.variables.php#reserved.variables.globals it refers to $GLOBALS as " This is a 'superglobal', or automatic global, variable. " gotta love the php manual kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote."

« previous php.general (#221005) next »