bradg has already given you some functions to try.
using simply
$a = (int)$var1;
will just cut off any decimals, 5492.9999 will become 5492
the more exact
$b = (int)round($var1);
will ound to closest integer value, 5492.9999 will become 5493
So, if you do not need any special precision, use just: $vint = (int)$var1;
Otherwise the [man]round/man function is to prefer.
Here you can make tests, and see what happens
for different values of $var1
<?php
$var1 = '5492.9999';
$var2 = (int)$var1;
$var3 = (int)round($var1);
// see results
echo '<pre>';
echo 'v2= '; var_dump($var2);
echo 'v3= '; var_dump($var3);
?>