"; // Check again... $x = 59.85; var_dump(is_int($x)); ?>
"; $x = "5985"; var_dump(is_numeric($x)); echo "
"; $x = "59.85" + 100; var_dump(is_numeric($x)); echo "
"; $x = "Hello"; var_dump(is_numeric($x)); ?>
"; // Cast string to int $x = "23465.768"; $int_cast = (int)$x; echo $int_cast; ?>