Re: $GLOBALS

From: Date: Mon, 08 Jul 2002 10:45:51 +0000
Subject: Re: $GLOBALS
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-85839@lists.php.net to get a copy of this message
derick@php.net wrote:
On Mon, 8 Jul 2002, Tit "Black" Petric wrote:
is there an alias to $GLOBALS .. seems kinda long to type.. if not, can i suggest "$_" or is it taken anywhere?
[...] 2. $GLOBALS is fine, and IMO we should not implement $_ because this is against the spirit of PHP: Keep it easy to read and to write.
We could talk about $_GLOBAL for consistency reasons but it definetly shouldn't get shorter IMHO. Relying on global variables is bad and should at least be punished by typing ... ;) -- Hartmut Holzgraefe hartmut@six.de http://www.six.de/ +49-711-99091-77

« previous php.dev (#85839) next »