Complete PHP Math Reference
The ceil() function returns the value of a number rounded UPWARDS to the nearest integer.
| Parameter | Description |
|---|---|
| x | Required. A number |
In the following example we will use the ceil() function on different numbers:
The output of the code above will be:
Complete PHP Math Reference
Your message has been sent to W3Schools.