Re: [PHP] Constants in class definitions

2004-02-23 Thread Toro Hill
Hi Adam. I was wondering if using defined constants in class definitions is completely legal (or even good practice) in PHP. I've looked throught the PHP documentation and from what I can tell it is legal. However, I've had some problems with Turck MMCache and class definitions that are similar to

[PHP] Constants in class definitions

2004-02-23 Thread Toro Hill
Hi all. I was wondering if using defined constants in class definitions is completely legal (or even good practice) in PHP. For example, define( "CONSTANT", "hello" ); class Yep{ $var stuff = array( CONSTANT => 'two' ); } ?> I've looked throught the PHP documentation and from what I can tell i