INTEGER stridx(STRING str, STRING what[, INTEGER origin])
This function returns the position in str where what exists--starting from origin--or a zero if it does not exist. If origin is not specified it will default to 1. The origin represents where to start searching in the string. If it is a positive number it starts that many elements into the string. If it is a negative number it starts that many elements from the end of the string, and searches backwards--from the end of the string to the start. Examples:
stridx("this test ok", "e")
=> 7stridx("this test ok", "t", -1)
=> 9stridx("this test ok", "t", -5)
=> 6stridx("this test ok", "alf")
=> 0
crypt() | explode() | lowercase() | match_begin() | match_pattern() | match_regexp() | match_template() | pad() | regexp() | strcmp() | strfmt() | strgraft() | strlen() | strsed() | strsub() | substr() | uppercase() | match_crypted() | split() | stridx()