note 24125 added to migration.truefalse
| From: | oliver at hankeln-online dot de | Date: | Wed, 07 Aug 2002 12:22:38 +0000 |
| Subject: | note 24125 added to migration.truefalse | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34450@lists.php.net to get a copy of this message | ||
I guess you are indeed wrong. You are right, 'FALSE' is beeing evaluated as a string. But
it is compared with a number, so automatic type conversion takes place. 'FALSE' as well as
'FOO' and so on are converted to 0. And (0==0) is obviously true. So the number does
matter. Try an other number...
Oliver
--
http://www.php.net/manual/en/migration.truefalse.php
http://master.php.net/manage/user-notes.php?action=edit+24125
http://master.php.net/manage/user-notes.php?action=delete+24125
http://master.php.net/manage/user-notes.php?action=reject+24125