.\"returns the index of an occurence of a given item in an array or string .DT member_array $MUDNAME$ driver help member_array .SH Name .SI 5 member_array() - returns index of an occurence of a given item in an array or string .EI .SH Synopsis .SI 5 int member_array( mixed item, mixed arr ); int member_array( mixed item, mixed arr, int start ); int member_array( mixed item, mixed arr, int start, int flag ); .EI .SH Description .SP 5 5 Returns the index of the first occurence of `item' in array or string `arr', or the first occurence at or after optional `start'. If the item is not found, then -1 is returned. If the optional `flag' is given, and `item' is a string, and `arr' is an array of strings, only strlen(`item') chars are matched. .EP .SH Examples .SI 5 member_array( "frog", ({ "wombles", "frogbane", "frog" }) ); returns 2 member_array( "frog", ({ "wombles", "frogbane", "frog" }), 0, 1 ); returns 1 .EI .SH Notes .SP 5 5 For the purpose of this efun, strings are considered to be arrays of ints. .EP