php how to check if a result of calculation is integer or float code example
Example: check if number is float in php
//check if number is float
$float = is_float(2.4);
echo $float; //Returns true (1) if number is a float and false otherwise
//check if number is float
$float = is_float(2.4);
echo $float; //Returns true (1) if number is a float and false otherwise