What is the difference between gettype and var_dump?
yjm7168
yjm7168 2017-11-20 15:45:15
0
2
1981

<?php

$float=88.8;

$type=gettype($float);

echo $type.'<br /> ';

$var=var_dump($float);

echo $var.'<br /> Why are the types of the two executions different, one is double, and the other is Is it float';

?>

yjm7168
yjm7168

零基础学编程!加油!

reply all(2)
无聊的人

Floating point type

Single precision + double precision If you use is_float($float), it is also equal to true.

电动小老虎

Double and faloat are the same. They both mean floating point type, but the precision of the data expressed is different.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template