note 63550 deleted from function.defined by bjori

From: Date: Thu, 23 Mar 2006 15:16:26 +0000
Subject: note 63550 deleted from function.defined by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-106478@lists.php.net to get a copy of this message
Note Submitter: cHaOs_fReAk at hotmail dot de ---- // Autor: Jens Neumann // Use: to handle constants // Heres a simple constant available check: // Constant check function get($constant) { if(defined($constant)) return constant($constant); else return false; return $constant; } // example define ("_CONSTANT", "string"); print_r (get("_CONSTANT"));

« previous php.notes (#106478) next »