mud/lib/doc/efun/all/member_array
2020-09-06 05:43:07 -07:00

14 lines
503 B
Plaintext

member_array - returns index of an occurrence of a given item in an array or string
int member_array( mixed item, mixed arr);
int member_array( mixed item, mixed arr, int start);
Returns the index of the first occurrence of `item' in the array or string
`arr', or the first occurrence at or after 'start'.
If the item is not found, then -1 is returned.
For the purpose of this efun, strings are considered to be arrays of ints.
Tim Hollebeek Beek@ZorkMUD, Lima Bean, IdeaExchange, and elsewhere