note 85590 added to function.sizeof
| From: | kaisellgren at gmail dot com | Date: | Sun, 07 Sep 2008 15:54:08 +0000 |
| Subject: | note 85590 added to function.sizeof | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144227@lists.php.net to get a copy of this message | ||
In addition to previous posts, there is a better and cleaner way to loop through an array using this
function.
<?php
for ($a = 0,$b = sizeof($array);$a < $b;$a++)
echo $array[$a];
?>
----
Server IP: 62.237.7.3
Probable Submitter: 81.175.154.102
----
Manual Page -- http://www.php.net/manual/en/function.sizeof.php
Edit -- https://master.php.net/note/edit/85590
Del: integrated -- https://master.php.net/note/delete/85590/integrated
Del: useless -- https://master.php.net/note/delete/85590/useless
Del: bad code -- https://master.php.net/note/delete/85590/bad+code
Del: spam -- https://master.php.net/note/delete/85590/spam
Del: non-english -- https://master.php.net/note/delete/85590/non-english
Del: in docs -- https://master.php.net/note/delete/85590/in+docs
Del: other reasons-- https://master.php.net/note/delete/85590
Reject -- https://master.php.net/note/reject/85590
Search -- https://master.php.net/manage/user-notes.php