note 90027 deleted from function.constant by danbrown

From: Date: Thu, 02 Apr 2009 13:32:06 +0000
Subject: note 90027 deleted from function.constant by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152755@lists.php.net to get a copy of this message
Note Submitter: richard at devarea dot nl ---- @cory dot mawhorter @ ephective dot com: I would say the function below is a tad shorter and faster. <?php function consttrue($const) { return defined($const) && constant($const); } ?>

« previous php.notes (#152755) next »