note 29841 deleted from function.key by joey
| From: | joey@php.net | Date: | Tue, 06 May 2003 17:29:36 +0000 |
| Subject: | note 29841 deleted from function.key by joey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-47590@lists.php.net to get a copy of this message | ||
How useful is this?
What I try to do is to list all key/value pairs with something like this:
for($i=0;$i<count($myarray);$i++){
$tmpvar=$myarray[$i];
echo("Key: ".$tmpvar.key()." Value: ".$tmpvar.value());
}
To get the first key in the array is of very limited use, I must say..