[PHP] Re: finding the index name of an associative array

2007-04-01 Thread itoctopus
foreach is also not recursive, writing a recursive function to recursively return the keys in an array should be trivial. -- itoctopus - http://www.itoctopus.com "Man-wai Chang" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > itoctopus wrote: > > Note, however, that array_keys is not

RE: [PHP] Re: finding the index name of an associative array

2007-04-01 Thread Peter Lauri
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Man-wai Chang > Sent: Sunday, April 01, 2007 2:45 PM > To: php-general@lists.php.net > Subject: [PHP] Re: finding the index name of an associative array > > itoctopus wrote: > > Note, howe

[PHP] Re: finding the index name of an associative array

2007-04-01 Thread Man-wai Chang
itoctopus wrote: > Note, however, that array_keys is not recursive. foreach is recursive??? thanks. -- .~. 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 ^ ^ 20:44:01 up

[PHP] Re: finding the index name of an associative array

2007-04-01 Thread itoctopus
Note, however, that array_keys is not recursive. -- itoctopus - http://www.itoctopus.com "Man-wai Chang" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jake McHenry wrote: > > foreach ($myarray as $key => $value) > > { > > echo "$key = $value"; > > } > > Thanks. I just found that

[PHP] Re: finding the index name of an associative array

2007-04-01 Thread Man-wai Chang
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! /( _