One thing to notice about PHP is that it provides automatic data type conversion. So, if you assign an integer value to a variable, the type of that variable will automatically be an integer.
is_int() - Check if variable is integeris_float() - Check if variable is floatis_numeric() - Check if variable is numeric or a numeric stringEdit the code below and click Run to see the result live.