Programming Code Center(PCC)
[PHP]

(PCC)::[How-to-Check-if-the-type-of-a-variable-is-integer-or-not-in-php]::[php]

File Name : index.php

<!DOCTYPE html>
<html>
<body>

<?php
// 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>
</html>

Output :

"; // Check again... $x = 59.85; var_dump(is_int($x)); ?>