Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]
Array

Method Array.search_array()


Method search_array

int Array.search_array(array arr, string|function|int fun, mixed ... args)

Description

search_array() works like map() , only it returns the index of the first call that returnes true instead.

If no call returns true, -1 is returned.

See also

sum() , map()