/doc/efun/member_array


SYNOPSIS

int member_array(mixed item, mixed *arr)
int member_array(mixed item, string arr)

DESCRIPTION

Returns the index of the first occurence of item in array arr, or occurence of a character in a string. If not found, then -1 is returned.

If you want to search through an alist, use assoc() because member_array() is good for unsorted but assoc() is faster for sorted arrays.

SEE ALSO

alists
mappings
assoc
slice_array

| Home | Applied | Concepts | Efuns | Help | Intro | Lib | LPC | Prop | Obj | Sefuns | Std | W |

Nightfall@quest.tat.physik.uni-tuebingen.de
Automatically generated on Don, 11. Apr 1996