ceil

ceil($num)

The ceil function returns the nearest integer higher than the number given in the parameter $num. If the parameter already is an integer, the function returns the same number.

echo ceil (10.1); //11
echo ceil (10.5); //11

Related functions:
floor()
round()