string_find_rev [function]
string_find_rev( string str, string substr, int offset = 0 )
returns the position of last 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_rev( "what hat", "hat" ); // int 5 string_find_rev( "what", "hat", 2 ); // int 1