<HEAD> <TITLE> member_array - returns index of an occurence of a given item in an array or string </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> member_array - returns index of an occurence of a given item in an array or string </H1> </center> <p> <b> int member_array( mixed item, mixed arr); </b> <p> <b> int member_array( mixed item, mixed arr, int start); </b> <p> Returns the index of the first occurence of `item' in the array or string `arr', or the first occurence at or after 'start'. If the item is not found, then -1 is returned. <p> For the purpose of this efun, strings are considered to be arrays of ints. <p> <HR> <ADDRESS> <A HREF=http://wagner.princeton.edu/~tim> Tim Hollebeek </A> <p> <A HREF="http://www.imaginary.com/~beek/"> Beek </A>@ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere </ADDRESS>