In PHP, you can use the ceil() function to implement the further method. This function is used to round up to the nearest integer, that is, round up to an integer and return the next value that is not less than the specified value. Integer, if the specified value has a decimal part, it will be rounded up by one digit. The syntax is "ceil(number);".
The operating environment of this article: Windows 10 system, PHP version 7.1, Dell G3 computer
ceil(number);
<?php echo(ceil(0.60); echo(ceil(0.40); echo(ceil(5); echo(ceil(5.1); echo(ceil(-5.1); echo(ceil(-5.9)); ?>
## Recommended learning: "
PHP Video TutorialThe above is the detailed content of How to implement further method in php. For more information, please follow other related articles on the PHP Chinese website!