How can PHP be used to round up values instead of rounding down?

By default, PHP's round() function rounds values down when the decimal portion is less than 0.5. To round up instead, you can use the ceil() function which always rounds up to the nearest integer. Simply pass the value you want to round up as an argument to ceil().

$value = 4.3;
$roundedUpValue = ceil($value);
echo $roundedUpValue; // Output: 5