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
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
2 matches
Mail list logo