ceil
ceil — Round fractions up.Description
ceil( int|float $num ): floatReturns the next highest integer value by rounding up num if necessary.
Parameters
num
The value to round
Return Values
num rounded up to the next highest integer. The return value of ceil() is still of type float as the value range of float is usually bigger than that of int.More information about ceil on official PHP documentation site
ceil - Popular snippets
- PHP 7.4 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2024-09-03 16:55:19
182
- PHP 5.6 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2024-09-03 16:55:18
181
- PHP 8.0 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2024-09-03 16:55:20
181
- PHP 8.1 / MySQL 5.7 mysqli_query mysqli_num_rows ceil print_r
last run:
2024-09-03 16:55:21
178
- PHP 7.4 / MySQL 5.7 strlen ceil print_r
last run:
2023-04-18 15:29:39
15
- PHP 7.4 / MySQL 5.7 strlen ceil
last run:
2021-07-01 20:47:09
10
- PHP 8.1 / MySQL 5.7 print_r round ceil
last run:
2024-02-16 13:13:40
9
- PHP 8.1 / MySQL 5.7 print_r round ceil
last run:
2024-02-16 13:12:57
8
- PHP 8.1 / MySQL 5.7 ceil printf
last run:
2022-12-02 23:38:12
8
- PHP 8.0 / MySQL 5.7 preg_match printf ceil
last run:
2024-09-16 19:01:01
7
ceil - New snippets
-
PHP 8.1 / MySQL 5.7 var_dump number_format ceil
added at:
2024-11-21 13:39:54
1
-
PHP 8.1 / MySQL 5.7 ceil
added at:
2024-10-22 08:15:03
1
-
PHP 8.1 / MySQL 5.7 ceil
added at:
2024-10-22 08:13:29
1
-
PHP 8.2.13 / MySQL 8.0 var_export ceil count
added at:
2024-10-08 09:55:29
1
-
PHP 8.1 / MySQL 5.7 strlen ceil print_r
added at:
2024-07-10 05:41:02
2
-
PHP 8.1 / MySQL 5.7 ceil
added at:
2024-06-18 15:16:16
1
-
PHP 8.1 / MySQL 5.7 log10 ceil printf round
added at:
2024-06-13 18:05:24
1
-
PHP 8.1 / MySQL 5.7 log10 ceil printf round
added at:
2024-06-13 18:01:35
1
-
PHP 8.1 / MySQL 5.7 log10 ceil printf round
added at:
2024-06-13 17:53:20
1
-
PHP 8.2.13 / MySQL 8.0 var_export ceil count
added at:
2024-04-20 22:01:10
1