note 114828 deleted from language.constants.syntax by cmb

From: Date: Tue, 05 Jul 2016 13:06:54 +0000
Subject: note 114828 deleted from language.constants.syntax by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-205889@lists.php.net to get a copy of this message
Note Submitter: kuzawinski dot marcin at NOSPAM dot gmail dot com ---- Actually, there is a way, to (re)declare FALSE (also: False, false, TRUE, NULL, etc.) constant, even if it is already declared: <?php var_dump(constant('I_DONT_EXIST')); // warning "Couldn't find constant I_DONT_EXIST" var_dump(constant('FALSE')); //no warning, output: bool(false) define('FALSE', TRUE); var_dump(constant('FALSE')); //output: bool(true) // but... var_dump(constant('false')); // output: bool(false) var_dump(FALSE); // output: bool(false); ?>

« previous php.notes (#205889) next »