note 60778 added to function.next
| From: | xxflip_pt at yahoo dot com | Date: | Mon, 16 Jan 2006 12:01:24 +0000 |
| Subject: | note 60778 added to function.next | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101920@lists.php.net to get a copy of this message | ||
The best way I found so far to go through all elements of an array is:
reset($myarray);
do {
access the value using: current($myarray);
} while (next($myarray));
----
Manual Page -- http://www.php.net/manual/en/function.next.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60778
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60778&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60778&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60778&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60778&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60778&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60778&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60778&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60778&report=yes
Search -- http://master.php.net/manage/user-notes.php