Re: [PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Curt Zirzow
* Thus wrote Greg Donald ([EMAIL PROTECTED]): > On Fri, 2004-05-21 at 08:37, Richard Davey wrote: > > 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! > > ANYWHERE except in code you plan to

Re: [PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Greg Donald
On Fri, 2004-05-21 at 08:37, Richard Davey wrote: > 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! ANYWHERE except in code you plan to eval(). Funny how get_defined_constants() knows about al

Re: [PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Richard Davey
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 whic