note 101382 added to function.count
| From: | malchata at osu1 dot php dot net | Date: | Tue, 14 Dec 2010 01:02:50 +0000 |
| Subject: | note 101382 added to function.count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-174889@lists.php.net to get a copy of this message | ||
Regarding an earlier comment: There's never a good reason to use count() on a string, as it
expects array or object data types. If you're using count() on a string, you should be using it
strlen() instead.
----
Server IP: 192.41.42.26
Probable Submitter: 184.97.155.224
----
Manual Page -- http://www.php.net/manual/en/function.count.php
Edit -- https://master.php.net/note/edit/101382
Del: integrated -- https://master.php.net/note/delete/101382/integrated
Del: useless -- https://master.php.net/note/delete/101382/useless
Del: bad code -- https://master.php.net/note/delete/101382/bad+code
Del: spam -- https://master.php.net/note/delete/101382/spam
Del: non-english -- https://master.php.net/note/delete/101382/non-english
Del: in docs -- https://master.php.net/note/delete/101382/in+docs
Del: other reasons-- https://master.php.net/note/delete/101382
Reject -- https://master.php.net/note/reject/101382
Search -- https://master.php.net/manage/user-notes.php