note 68911 added to function.count
| From: | asdf at asdf dot com | Date: | Tue, 15 Aug 2006 17:41:39 +0000 |
| Subject: | note 68911 added to function.count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115950@lists.php.net to get a copy of this message | ||
If you feed count() a boolean value, it should NOT return a count at all -- the way its done in
languages like c++ and java.
This creates a HUGE problem if your doing error handling in classes.
----
Server IP: 64.71.164.2
Probable Submitter: 67.90.55.2
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.count.php
Edit -- https://master.php.net/note/edit/68911
Del: integrated -- https://master.php.net/note/delete/68911/integrated
Del: useless -- https://master.php.net/note/delete/68911/useless
Del: bad code -- https://master.php.net/note/delete/68911/bad+code
Del: spam -- https://master.php.net/note/delete/68911/spam
Del: non-english -- https://master.php.net/note/delete/68911/non-english
Del: in docs -- https://master.php.net/note/delete/68911/in+docs
Del: other reasons-- https://master.php.net/note/delete/68911
Reject -- https://master.php.net/note/reject/68911
Search -- https://master.php.net/manage/user-notes.php