03-20-2008, 08:35 PM
|
#4 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Quote:
Originally Posted by Wildhoney
...Or you can do:
php Code:
$aItems = array( 'Wildhoney' => 'Adam', 'Salathe' => 'Peter', 'Bluesaga' => 'Will'); while(list($szKey, $szValue) = each($aItems)){ printf('Key = "%s" and Value = "%s"<br />', $szKey, $szValue); }
|
Erm.. Mine is only
PHP Code:
foreach(array_keys($array) As $key)
{
echo $array[$key];
}
You're just making it complicated xD
__________________
VillageIdiot can have my babbies ;d
|
|
|
|