Source Code:
(back to article)
<?php $number = 4.2; // Round the number up to the nearest integer using the ceil() function $rounded_number = ceil($number); // Output the rounded number echo $rounded_number; ?>
Result:
Report an issue