Re: CONSTANTS and good coding practice

From: Date: Fri, 21 May 2004 19:43:15 +0000
Subject: Re: CONSTANTS and good coding practice
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186712@lists.php.net to get a copy of this message
Many thanks everyone. Seems like I should be using constants a lot of places where I've been using globals. Al wrote:
Can someone explain to me the value of using defined custom constants, in the context of good coding practice. I don't recall ever seeing define() used in the scripts I've seen and only the characteristics are described in the my php book and the php manual; but, not the use. Thanks.....


« previous php.general (#186712) next »