is float php code example
Example 1: 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
Example 2: php float value
floatval ($var)
//check if number is float
$float = is_float(2.4);
echo $float; //Returns true (1) if number is a float and false otherwise
floatval ($var)