note 29841 added to function.key
| From: | php-general at lists dot php dot net | Date: | Wed, 26 Feb 2003 16:19:29 +0000 |
| Subject: | note 29841 added to function.key | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44559@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..
--
http://www.php.net/manual/en/function.key.php
http://master.php.net/manage/user-notes.php?action=edit+29841
http://master.php.net/manage/user-notes.php?action=delete+29841
http://master.php.net/manage/user-notes.php?action=reject+29841