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 date strtotime time floor
last run:
2022-08-10 18:42:58
38
- PHP 8.1 / MySQL 5.7 date strtotime floor
last run:
2022-08-10 19:39:49
22
- 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 explode array_pop print_r floor microtime
last run:
2024-07-27 21:32:46
10
- PHP 8.2.13 / MySQL 5.7 floor
last run:
2023-06-28 09:21:35
8
- PHP 5.6 / MySQL 5.7 rand floor count array_merge shuffle array_unshift print_r
last run:
2023-10-22 05:57:50
6
- PHP 8.1 / MySQL 5.7 floor log10 pow
last run:
2022-12-20 03:14:30
5
- PHP 7.4 / MySQL 5.7 intval srand floor time rand
last run:
2022-11-30 22:34:01
5
- PHP 8.1 / MySQL 5.7 date_default_timezone_set time strtotime floor
last run:
2022-07-03 15:17:21
4
- PHP 8.1 / MySQL 5.7 date_default_timezone_set time strtotime floor
last run:
2022-07-03 14:54:19
4
floor - New snippets
-
PHP 8.1 / MySQL 5.7 var_dump number_format floor
added at:
2024-11-21 13:40:38
1
-
PHP 8.2.13 / MySQL 8.0 floor var_export
added at:
2024-11-07 20:22:50
1
-
PHP 8.2.13 / MySQL 8.0 floor var_export
added at:
2024-11-07 20:17:57
1
-
PHP 8.2.13 / MySQL 8.0 floor var_export
added at:
2024-11-07 20:17:28
1
-
PHP 8.2.13 / MySQL 8.0 floor var_export
added at:
2024-11-07 20:16:56
1
-
PHP 8.2.13 / MySQL 8.0 floor array_multisort array_map var_export
added at:
2024-11-07 19:59:26
2
-
PHP 8.2.13 / MySQL 8.0 floor array_map var_export
added at:
2024-11-07 19:39:49
1
-
PHP 8.2.13 / MySQL 8.0 floor var_export array_map
added at:
2024-11-07 19:39:09
1
-
PHP 8.2.13 / MySQL 8.0 floor var_export array_map
added at:
2024-11-07 19:38:31
1
-
PHP 8.2.13 / MySQL 8.0 floor var_export array_map
added at:
2024-11-07 19:37:47
1