Use Of gettype() Function
Here, gettype() function is used to get the datatype of the variables. Syntax gettype($variable); <?php $a=10; $b=10.98; $c=”Hello”; echo “$a is “.gettype($a); echo “<br> $b is “.gettype($b); echo “<br> $c is “.gettype($c); ?> OutPut 10 is integer 10.98 is double Hello is string