What PHP function can be used to always round a number up, even if it's at a decimal like 4.1?

When we want to always round a number up, even if it's at a decimal like 4.1, we can use the ceil() function in PHP. The ceil() function rounds a number up to the nearest integer, regardless of the decimal value. This can be useful when we need to ensure that a number is always rounded up to the next whole number.

$number = 4.1;
$rounded_up = ceil($number);
echo $rounded_up; // Output: 5