Re: PHP_SELF or REQUEST_URI within Function ?

From: Date: Fri, 31 Aug 2001 15:08:20 +0000
Subject: Re: PHP_SELF or REQUEST_URI within Function ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65488@lists.php.net to get a copy of this message
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

« previous php.general (#65488) next »