note 24210 added to function.next
| From: | webmaster@php.net | Date: | Fri, 09 Aug 2002 14:23:16 +0000 |
| Subject: | note 24210 added to function.next | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34608@lists.php.net to get a copy of this message | ||
To work with the elements in an array,
why not do it the simple understandable way:
reset($testarray);
do {
$value = current ($testarray);
$key = key ($testarray);
echo "< br >Value: $value Key: $key";
} while (next($testarray));
--
http://www.php.net/manual/en/function.next.php
http://master.php.net/manage/user-notes.php?action=edit+24210
http://master.php.net/manage/user-notes.php?action=delete+24210
http://master.php.net/manage/user-notes.php?action=reject+24210