pike.hubbe.net

[Top]
Array
previousArray.rreduce() Array.shuffle()next

Method Array.search_array()


Method search_array

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

Description

Array.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

Array.sum_arrays(), map


Extracted from Pike v7.3 release 11 at 2001-11-03.