In PHP, you can use the floor()
function to round a number down to the nearest integer. Here's an example:
main.php63 chars3 lines
The floor()
function takes a single argument, which is the number you want to round down. It returns the rounded-down integer as a result.
gistlibby LogSnag