PHP floor() Function is used to get round a number down to the nearest integer for floating-point number. A floor() function is built-in function in PHP.
Syntax :
floor(int $number);
Parameter,
$number: Required. It is a number.
Return Values :
It returns round up number down to nearest integer for floating-point number.
Let's see below example to understand php floor() Function in details.
Comments