floor
floor — Round fractions down.Description
floor( int|float $num ): floatReturns the next lowest integer value (as float) by rounding down num if necessary.
Parameters
num
The value to round
Return Values
num rounded to the next lowest integer. The return value of floor() is still of type float because the value range of float is usually bigger than that of int. This function returns false in case of an error (e.g. passing an array).More information about floor on official PHP documentation site
floor - Popular snippets
- PHP 8.1 / MySQL 5.7 array_sum array_column var_dump floor
last run:
2022-05-11 20:38:46
11
- PHP 8.1 / MySQL 5.7 var_dump floor
last run:
2022-05-11 20:35:24
4
- PHP 8.1 / MySQL 5.7 var_dump floor
last run:
2022-05-11 20:34:33
4
- PHP 8.1 / MySQL 5.7 floor array_slice implode
last run:
2022-05-15 20:43:42
3
- PHP 8.0 / MySQL 5.7 floor var_dump
last run:
2022-04-09 04:29:32
3
- PHP 7 / MySQL 5.7 array_sum array_column var_dump floor
last run:
2022-05-11 20:38:36
2
- PHP 8.1 / MySQL 5.7 floor number_format
last run:
2022-05-04 13:28:27
2
- PHP 7 / MySQL 8.0 floor
last run:
2022-05-24 06:44:13
1
- PHP 7 / MySQL 8.0 floor
last run:
2022-05-24 06:36:42
1
- PHP 7 / MySQL 8.0 floor
last run:
2022-05-24 06:36:31
1
floor - New snippets
-
PHP 7 / MySQL 8.0 floor
added at:
2022-05-24 06:44:13
1
-
PHP 7 / MySQL 8.0 floor
added at:
2022-05-24 06:36:42
1
-
PHP 7 / MySQL 8.0 floor
added at:
2022-05-24 06:36:31
1
-
PHP 7 / MySQL 8.0 floor
added at:
2022-05-24 06:33:35
1
-
PHP 7 / MySQL 8.0 floor floor
added at:
2022-05-24 06:30:39
1
-
PHP 7 / MySQL 8.0 floor
added at:
2022-05-24 05:53:03
1
-
PHP 7 / MySQL 8.0 floor
added at:
2022-05-24 05:52:40
1
-
PHP 8.1 / MySQL 5.7 floor array_slice implode
added at:
2022-05-15 08:12:35
3
-
PHP 8.1 / MySQL 5.7 floor array_slice implode
added at:
2022-05-15 08:12:00
1