note 119725 deleted from language.types.boolean by salathe

From: Date: Thu, 11 Aug 2016 12:48:44 +0000
Subject: note 119725 deleted from language.types.boolean by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206262@lists.php.net to get a copy of this message
Note Submitter: KD (India) ---- You Can not use booleans as integer values they are symbolic constants represents a boolean value even if you modify their symbolic value. <?php $x=TRUE; echo $x+785; //786 var_dump($x); //bool(true) not integer(786) $x=FALSE; echo $x+785; //785 var_dump($x); //bool(false) not integer(785) ?>

« previous php.notes (#206262) next »