note 115939 added to types.comparisons
| From: | Anonymous | Date: | Thu, 16 Oct 2014 18:19:06 +0000 |
| Subject: | note 115939 added to types.comparisons | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200666@lists.php.net to get a copy of this message | ||
The loose comparison chart is missing a few things.
array(1)==true returns true.
also:
(int)array(1) === 1 returns true
This is symmetric:
array(1) === (array)1 returns true
but the loose comparison
array(1)==1 still returns false.
----
Server IP: 72.52.91.14
Probable Submitter: 67.160.129.248
----
Manual Page -- http://php.net/manual/en/types.comparisons.php
Edit -- https://master.php.net/note/edit/115939
Del: integrated -- https://master.php.net/note/delete/115939/integrated
Del: useless -- https://master.php.net/note/delete/115939/useless
Del: bad code -- https://master.php.net/note/delete/115939/bad+code
Del: spam -- https://master.php.net/note/delete/115939/spam
Del: non-english -- https://master.php.net/note/delete/115939/non-english
Del: in docs -- https://master.php.net/note/delete/115939/in+docs
Del: other reasons-- https://master.php.net/note/delete/115939
Reject -- https://master.php.net/note/reject/115939
Search -- https://master.php.net/manage/user-notes.php