I am using similar_text() function to Calculate the similarity between two strings.
$s1 = 'God is great';
$s2 = 'I too';
similar_text($s1, $s2, $result);
echo $result;
It gives output 11.764705882353 but when i interchange the position of strings, it gives different output:
$s1 = 'God is great';
$s2 = 'I too';
similar_text($s2, $s1, $result);
echo $result;
It gives output 23.529411764706 Why is this happen?