So sprach »Boget, Chris« am 2001-08-31 um 10:04:49 -0500 :
> Or, so you don't have to specify all the variables you are using 
> as globals (especially if you are using *alot* of them), you can 
> use:
> 
> $GLOBALS[SCRIPT_FILENAME];

What's the gain?  'global ' has 7 characters, whereas '$GLOBALS[]' has
10 characters.  So, you don't type less.  And with using global(), the
code is more orderly, and thus easier to read.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:       http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
                Uptime: 2 days 2 hours 0 minutes

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