note 39512 deleted from function.constant by nlopess

From: Date: Sat, 31 Jan 2004 10:15:35 +0000
Subject: note 39512 deleted from function.constant by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64471@lists.php.net to get a copy of this message
Note Submitter: gphemsley@users.sourceforge.net ---- For those of you who need constant() for PHP < 4.0.4, this simple function should do the trick. <?php function constant( $name ) { return @eval( "return $name;" ); } ?>

« previous php.notes (#64471) next »