note 85892 added to function.sizeof
| From: | PixEye at osu1 dot php dot net | Date: | Tue, 23 Sep 2008 16:09:13 +0000 |
| Subject: | note 85892 added to function.sizeof | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144637@lists.php.net to get a copy of this message | ||
I am quite surprised about previous posts. Here are my advices:
1/ prefer the count() function instead of sizeOf() as sizeOf() is only an alias of count() and does
not mean the same in many other languages based on C (avoid ambiguity).
2/ prefer the powerful forEach() function to iterate over arrays.
----
Server IP: 89.31.146.176
Probable Submitter: 217.195.17.2
----
Manual Page -- http://www.php.net/manual/en/function.sizeof.php
Edit -- https://master.php.net/note/edit/85892
Del: integrated -- https://master.php.net/note/delete/85892/integrated
Del: useless -- https://master.php.net/note/delete/85892/useless
Del: bad code -- https://master.php.net/note/delete/85892/bad+code
Del: spam -- https://master.php.net/note/delete/85892/spam
Del: non-english -- https://master.php.net/note/delete/85892/non-english
Del: in docs -- https://master.php.net/note/delete/85892/in+docs
Del: other reasons-- https://master.php.net/note/delete/85892
Reject -- https://master.php.net/note/reject/85892
Search -- https://master.php.net/manage/user-notes.php