arrays / member_array

Edit on Github

NAME

member_array()  -  returns  index of an occurence of a given item in an
array or string

SYNOPSIS

int member_array( mixed item, mixed * | string arr, void | int start );

DESCRIPTION

Returns the index of the first occurence of 'item' in array  'arr',  or
the  first  occurence  at  or after 'start'.  If the item is not found,
then -1 is returned.