> $var = array ( > 'AN' => array ( > 'Description' => 'Accession Number: (AN)', > 'ReferenceURL' => 'AN__Accession_Number.jsp', > ), > 'AU' => array ( > 'Description' => 'Author(s): (AU)', > 'ReferenceURL' => 'AU__Author(s).jsp', > ) > ) > > What I want to get is the keys 'AN' and 'AU' as values. > > while (??){ > echo "This key is $var[??]<br>"; > } > > This key is AN > This key is AU
foreach($var as $key => $value) { echo "The key is $key"; } ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php