In PHP, I have a string variable that contains a number. The string is a multibyte string and with UTF-8 encoding.
When I echo the variable($str), it prints 1392. But the problem is that calculations on this variable fails. Consider the output of the following lines:
echo $str; // Prints 1392
echo $str + 0; // Prints 0 (it should print 1392)
echo $str + 1; // Prints 1 (it should print 1393)
echo bin2hex($str); // Prints: dbb1dbb3dbb9dbb2