<html>
<body>
// Check if the type of a variable is integer
$x = 5985;
var_dump(is_int($x));
echo "<br>";
// Check again...
$x = 59.85;
var_dump(is_int($x));
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_numbers_integer by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:29:30 GMT -->
</html>