Re: Globals

From: Date: Fri, 01 Aug 2003 19:20:25 +0000
Subject: Re: Globals
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157995@lists.php.net to get a copy of this message
just to let you know, the $GLOBALS[] superglobals was around long before php 4.1.0 Jim Lucas ----- Original Message ----- From: "Jay Blanchard" <jay.blanchard@niicommunications.com> To: "Chris Boget" <chris@wild.net>; "PHP General" <php-general@lists.php.net> Sent: Friday, August 01, 2003 12:18 PM Subject: RE: [PHP] Globals [snip] $GLOBALS [/snip] From http://us2.php.net/language.variables.scope "The $GLOBALS array is an associative array with the name of the global variable being the key and the contents of that variable being the value of the array element. Notice how $GLOBALS exists in any scope, this is because $GLOBALS is a superglobal." // Superglobals are available in any scope and do // not require 'global'. Superglobals are available // as of PHP 4.1.0 HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#157995) next »