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 To Your Internet Angst
http://www.neweve.com/
--
PHP Development Mailing List
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.
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 To Your