See array_search() function.
On Fri, 20 Apr 2001, Thomas Deliduka wrote:
> Perhaps having in_array return the index for the element that contains the
> needle.
>
> That would be very useful.
> --
>
> Thomas Deliduka
> IT Manager
> -
> New Eve Media
> The Solution T
Quoting Thomas Deliduka <[EMAIL PROTECTED]>:
> Perhaps having in_array return the index for the element that contains the
> needle.
>
> That would be very useful.
No, that would break the semantics of the function, because the index could be
0, which evaluates to false in boolean expressions.