finding the index name of an associative array
| From: | Man-wai Chang | Date: | Sun, 01 Apr 2007 07:59:29 +0000 |
| Subject: | finding the index name of an associative array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-251874@lists.php.net to get a copy of this message | ||
myarray=array()
myarray['a']=1
myarray['b']=1
myarray['c']=1
Is there an iterative way to find out the array index values ('a', 'b'
and 'c') of myarray?
--
.~. 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
^ ^ 15:58:01 up 8 days 3:10 0 users load average: 1.00 1.00 1.00
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk