note 93137 deleted from function.constant by danbrown

From: Date: Tue, 25 Aug 2009 16:25:20 +0000
Subject: note 93137 deleted from function.constant by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159879@lists.php.net to get a copy of this message
Note Submitter: aeiou ---- cory dot mawhorter @ ephective dot com why would you do this? the function returns NULL if not defined so a simple bool cast would suffice. Null is false when casted to boolean. if ((bool)const('x')) { }

« previous php.notes (#159879) next »