<?php
$a=100.84;
settype($a,'int');
var_dump($a);
//This will display int (100)
?>
var_dump(settype ($a,'int'));
//This will display bool(true)
settype has a return value, and if the set type conversion is successful, it returns true. Otherwise, it returns false
settype has a return value, and if the set type conversion is successful, it returns true. Otherwise, it returns false