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
> -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
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
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
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!
/( _
5 matches
Mail list logo