I just wondering, whats happens here. If I am using this:
var_dump(similar_text('abcd', 'abcdefg', $percent)); //output: int 4
Thats ok, abcd
in the proper place, so 4 is good result.
Let's change a
and b
at the begining of the first variabl:
var_dump(similar_text('bacd', 'abcdefg', $percent)); //output: int 3
I excpected to 2
or 4
but not 3
. Can somebody explain it to me why is it?