note 30234 deleted from function.current by bjori
| From: | bjori@php.net | Date: | Mon, 24 Apr 2006 15:14:32 +0000 |
| Subject: | note 30234 deleted from function.current by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109456@lists.php.net to get a copy of this message | ||
Note Submitter: someone out there
----
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);
}