Recently I had to work with the strange behavior of data type float in PHP.
Have the following code:
<?php $i = (float)"12345"; $i++; echo $i; // 12345 || 12346 ?>
Check for localhost (Windows XP, Apache 2.0, PHP 5.2.6) displays a <12346>, but at some hosting <12345>.
Why is this happening do not know yet