PHP ceil() Function

The ceil() function rounds a number UP to the nearest integer, if necessary.

float ceil ( float $value )

Returns the next highest integer value by rounding up value if necessary.

Example -

ParameterDescription
valueThe value to round

value rounded up to the next highest integer. The return value of ceil() is still of type float as the value range of float is usually bigger than that of integer.