RE: [PHP] in_array() 4.0.0 -> 4.0.2
| From: | Richard Heyes | Date: | Mon, 11 Sep 2000 20:29:55 +0000 |
| Subject: | RE: [PHP] in_array() 4.0.0 -> 4.0.2 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16225@lists.php.net to get a copy of this message | ||
Forgot to include the list...
> > Hmm, I didn't realize people relied on that behavior. It's possible to
> > change it back to the old one, but still implement a check that if the
> > element is not found the pointer is reset to the beginning of the array,
> > but I guess I'd like to hear more opinions about this before doing any
> > changes.
>
> How about returning the key of the element where it is found?
>
> --
> Richard Heyes
> http://www.heyes-computing.net/scripts/