note 74827 added to language.types.boolean
| From: | terminatorul at gmail dot com | Date: | Sun, 29 Apr 2007 21:21:42 +0000 |
| Subject: | note 74827 added to language.types.boolean | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125963@lists.php.net to get a copy of this message | ||
Beware that "0.00" converts to boolean TRUE !
You may get such a string from your database, if you have columns of type DECIMAL or CURRENCY. In
such cases you have to explicitly check if the value is != 0 or to explicitly convert the value to
int also, not only to boolean.
----
Server IP: 69.147.83.197
Probable Submitter: 89.137.181.195
----
Manual Page -- http://www.php.net/manual/en/language.types.boolean.php
Edit -- https://master.php.net/note/edit/74827
Del: integrated -- https://master.php.net/note/delete/74827/integrated
Del: useless -- https://master.php.net/note/delete/74827/useless
Del: bad code -- https://master.php.net/note/delete/74827/bad+code
Del: spam -- https://master.php.net/note/delete/74827/spam
Del: non-english -- https://master.php.net/note/delete/74827/non-english
Del: in docs -- https://master.php.net/note/delete/74827/in+docs
Del: other reasons-- https://master.php.net/note/delete/74827
Reject -- https://master.php.net/note/reject/74827
Search -- https://master.php.net/manage/user-notes.php