Dokumentation zu: member(E)

HR Image

        int member(mixed *array, mixed elem [, int start])
        int member(string s, int elem [, int start])
        int member(bytes s, int elem [, int start])
        int member(mapping m, mixed key)

        For arrays, strings and byte sequences, returns the index of the
        first occurance of second arg in the first arg, or -1 if none found.
        If <start> is given and non-negative, the search starts at
        that position. A start position beyond the end of the string
        or array will cause the efun to return -1.

        For mappings it checks, if key is present in mapping m and
        returns 1 if so, 0 if key is not in m.

        LDMud 3.3.556 added the <start> parameter.

        rmember(E), mappings(LPC)

Die Seite ist auch in Deutsch vorhanden.

Start » Magierhandbuch » Docu » Efun » Member Letzte Generierung: 25.04.2021, 01:58
Email an:
Valid HTML 4.01!