Re: Re: CONSTANTS and good coding practice
| From: | Richard Davey | Date: | Fri, 21 May 2004 13:37:49 +0000 |
| Subject: | Re: Re: CONSTANTS and good coding practice | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186679@lists.php.net to get a copy of this message | ||
Hello Craig,
Friday, May 21, 2004, 2:30:20 PM, you wrote:
C> Constants are useful when a variable will remain exactly the same
C> (constant) through the life of a script.
Absolutely - and one of the best features of constants is their scope
- being global in nature you can use them ANYWHERE which is very handy
indeed!
--
Best regards,
Richard Davey
http://www.launchcode.co.uk / PHP Development Services
http://www.phpcommunity.org/wiki/296.html /
PHP Community