note 59754 deleted from language.operators.arithmetic by hholzgra

From: Date: Thu, 02 Aug 2012 15:04:23 +0000
Subject: note 59754 deleted from language.operators.arithmetic by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189802@lists.php.net to get a copy of this message
Note Submitter: shmee35 at hotmail dot com ---- Note that constructs which evaluate to 0 (such as empty strings, false, or an explicit NULL) will be treated as 0 in a arithmetic operation. Therefore: <?php echo 5*"", '<br>'; echo 5+false, '<br>'; echo 5/NULL, '<br>'; ?> Will produce: 0 5 Warning: Division by zero

« previous php.notes (#189802) next »