note 30260 added to function.current
| From: | php4all at free dot fr | Date: | Wed, 12 Mar 2003 13:37:11 +0000 |
| Subject: | note 30260 added to function.current | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45152@lists.php.net to get a copy of this message | ||
There is an other way to grag the key and the value of an Array:
<?
foreach($myArray as $Key => $Value) {
echo "Key:" . $Key;
echo "Value:" . $Value;
}
?>
Then you will have the key and the value of each element in the Array.
php4all
--
http://www.php.net/manual/en/function.current.php
http://master.php.net/manage/user-notes.php?action=edit+30260
http://master.php.net/manage/user-notes.php?action=delete+30260
http://master.php.net/manage/user-notes.php?action=reject+30260