Syntax of ceil in PHP
float ceil(float number)
Returns the next highest value to number, rounding upwards if needed
Example of ceil function
<?php
echo ceil(4.3); // 5
echo ceil(9.999); // 10
echo ceil(-3.14); // -3
?>
float ceil(float number)
Returns the next highest value to number, rounding upwards if needed
<?php
echo ceil(4.3); // 5
echo ceil(9.999); // 10
echo ceil(-3.14); // -3
?>