Re: [PHP-DEV] Suggestion for in_array

2001-04-20 Thread Andrei Zmievski
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

Re: [PHP-DEV] Suggestion for in_array

2001-04-20 Thread Chuck Hagenbuch
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.

[PHP-DEV] Suggestion for in_array

2001-04-20 Thread Thomas Deliduka
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