note 90237 added to language.types.boolean

From: Date: Sat, 11 Apr 2009 20:35:25 +0000
Subject: note 90237 added to language.types.boolean
Groups: php.notes 
Request: Send a blank email to php-notes+get-153095@lists.php.net to get a copy of this message
Just a side note, doesn't really matters, the reason -1 is true and not false is because boolean type is treated as unsigned, so -1 would be for example, if it's unsigned int32 translate to hex: 0xFFFFFFFF and back to decimal: 4294967295 which is non-zero. there isn't really a "negative boolean". it's a binary thing. :o (since it used to be a bit and then there was only 0 and 1 as an option) ---- Server IP: 69.147.83.197 Probable Submitter: 93.172.161.123 ---- Manual Page -- http://www.php.net/manual/en/language.types.boolean.php Edit -- https://master.php.net/note/edit/90237 Del: integrated -- https://master.php.net/note/delete/90237/integrated Del: useless -- https://master.php.net/note/delete/90237/useless Del: bad code -- https://master.php.net/note/delete/90237/bad+code Del: spam -- https://master.php.net/note/delete/90237/spam Del: non-english -- https://master.php.net/note/delete/90237/non-english Del: in docs -- https://master.php.net/note/delete/90237/in+docs Del: other reasons-- https://master.php.net/note/delete/90237 Reject -- https://master.php.net/note/reject/90237 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153095) next »