Re: finding the index name of an associative array

From: Date: Sun, 01 Apr 2007 13:22:13 +0000
Subject: Re: finding the index name of an associative array
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-251886@lists.php.net to get a copy of this message
Note, however, that array_keys is not recursive. -- itoctopus - http://www.itoctopus.com "Man-wai Chang" <toylet.toylet@gmail.com> wrote in message news:eunsss$5dr$1@sea.gmane.org... > Jake McHenry wrote: > > foreach ($myarray as $key => $value) > > { > > echo "$key = $value"; > > } > > Thanks. I just found that there is an array_key() function. > > -- > .~. Might, Courage, Vision, SINCERITY. > http://www.linux-sxs.org > / v \ Simplicity is Beauty! May the Force and Farce be with you! > /( _ )\ (Ubuntu 6.10) Linux 2.6.20.4 > ^ ^ 17:09:01 up 8 days 4:21 1 user load average: 1.10 1.03 1.01 > news://news.3home.net news://news.hkpcug.org > news://news.newsgroup.com.hk

« previous php.general (#251886) next »