I tried:
substr($string, 0, -1);
substr_replace($string ,"",-1);
but get always
�
and not the last char of my string????
I want to compare strings and the last Char of stringTwo always is missing, so i tried to find equal stings with substr_replace or substr function and deleting the last char.
$stringOne = "house";
$stringTwo = "hous";
it is strange again and again i get �� by using substring and substr_replace... with mb_substr i can delete the �, but how can i check before doing something if i use mb_substr or substr???