Find index of substring
Returns the index of the first occurrence of sub in s, or -1 if not found.
sub
s
s (String): The search string.
String
sub (String): The substring to find.
The index of the first occurrence.