Answers for "how to check if a variable is in integer or float in php"

PHP
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
Posted by: Guest on March-29-2021

Code answers related to "how to check if a variable is in integer or float in php"

Browse Popular Code Answers by Language