string_find [function]
string_find( string str, string substr, int offset = 0 )
returns the position of first found substring substr
in string str
, starting at offset
- if
substr
was not found, 'null' is returned - if
offset
is less than 0, it specifies offset from the end
string_find( "what hat", "hat" ); // int 1 string_find( "what", "hat", 2 ); // null