note 98481 deleted from language.operators.comparison by danbrown

From: Date: Thu, 17 Jun 2010 22:43:02 +0000
Subject: note 98481 deleted from language.operators.comparison by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-170225@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- <?php if ('0') echo 'Any not empty string is true'; else echo 'String with only one zero is false, like empty string'; ?> Second string will be printed. Tested in 5.3.2. Hovewer this works fine <?php if('0' === true) echo 'Zero in string is not false'; ?>

« previous php.notes (#170225) next »