Determine where 2 strings begin to differ from each other.This function is valid in v2.3.0 to v2.20.0. This function has been downloaded 22 times.
-1will be returned. In all other cases, the first index at which the corresponding character in
str1is not the same as that found in
str2will be returned.