- strcmp: documentation ( source)
<?php
$foo = (float) (PHP_INT_MAX );
$foo *= 2;
if ($foo == 1.844674407371E+19) {
echo "true";
}
else {
echo "$foo != 1.844674407371E+19";
$string = (string)$foo;
$expectedString = "1.844674407371E+19";
if (strcmp($expectedString, $string) === 0) {
echo "\npresentation is the same.";
}
}