+ 1
How to convert floating point numbers to integers in php when using the module operator
Understanding basic convertion modes in php
1 Respuesta
+ 2
either you can use round up function like ceil() or floor()
or simply intval()
i.e.
$a = 3.43;
$convert = intval($a);
echo $convert;
//output :: 3