<?php
$a=100.84;
settype($a,'int');
var_dump($a);
//This will display int (100)
?>
<?php
$a=100.84;
var_dump(settype ($a,'int'));
//This will display bool(true)
?>
小明2018-12-05 19:41:44
settype has a return value, and if the set type conversion is successful, it returns true. Otherwise, it returns false