note 69086 deleted from function.defined by bjori

From: Date: Wed, 23 Aug 2006 07:34:54 +0000
Subject: note 69086 deleted from function.defined by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116199@lists.php.net to get a copy of this message
Note Submitter: Joel at noSPAM dot com ---- To below user Pirman: I think after you read how your code would translate after PHP runs it you'll understand your result. This is what your code would look like at run time: <?php echo "<br>define myconstant"; define('MYCONSTANT', TRUE); echo "<br>My Constant is:".TRUE; echo "<br>Result of defined(MYCONSTANT)?:". defined(TRUE); echo "<br>Result of defined('MYCONSTANT')?:". defined('MYCONSTANT'); echo "<br><br> define some other constant"; define('OTHERCONSTANT', TRUE); echo "<br>My Constant is:".TRUE; echo "<br>Result of defined(MYCONSTANT)?:". defined(TRUE); echo "<br>Result of defined('MYCONSTANT')?:". defined('MYCONSTANT'); echo "<br><br> double define some other constant"; define('OTHERCONSTANT', TRUE); echo "<br>My Constant is:".TRUE; echo "<br>Result of defined(MYCONSTANT)?:". defined(TRUE); echo "<br>Result of defined('MYCONSTANT')?:". defined('MYCONSTANT'); ?>

« previous php.notes (#116199) next »