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