note 30234 added to function.current
| From: | someone at rack1 dot php dot net | Date: | Tue, 11 Mar 2003 20:42:12 +0000 |
| Subject: | note 30234 added to function.current | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45112@lists.php.net to get a copy of this message | ||
here's a way to grab array keys:
reset($myArray);
while (current($myArray) !== false) {
$myKey = key($myArray);
echo $myKey; //do as you will with each key
next($myArray);
}
--
http://www.php.net/manual/en/function.current.php
http://master.php.net/manage/user-notes.php?action=edit+30234
http://master.php.net/manage/user-notes.php?action=delete+30234
http://master.php.net/manage/user-notes.php?action=reject+30234