note 90170 deleted from language.types.boolean by danbrown

From: Date: Thu, 18 Jun 2009 14:10:23 +0000
Subject: note 90170 deleted from language.types.boolean by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157077@lists.php.net to get a copy of this message
Note Submitter: josh at i-josh dot com ---- A clarification to Russell's note below: PHP will translate the STRINGS 'false' and '0.0' as true because they are strings which aren't empty. The 'false' example is noted in the 'Converting to Boolean' section. However, if one uses the FLOAT of 0.0, it will correctly be interpreted as false.

« previous php.notes (#157077) next »