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 8.1 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
last run:
2025-05-05 17:59:33
8
- PHP 8.0 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
last run:
2025-05-05 17:59:31
8
- PHP 7.4 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
last run:
2025-05-05 17:59:30
8
- PHP 8.4 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
last run:
2025-05-05 17:59:37
7
- PHP 8.2 / MySQL 8.0 var_export ceil count
last run:
2025-07-02 16:10:58
6
- PHP 8.3 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
last run:
2025-05-05 17:59:36
5
- PHP 8.2 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
last run:
2025-05-05 17:59:34
5
- PHP 8.3 / MySQL 8.0 print_r ceil
last run:
2025-07-07 09:01:52
2
- PHP 8.2 / MySQL 8.0 var_export ceil count
last run:
2025-06-25 16:33:15
2
- PHP 8.1 / MySQL 8.0 ceil is_numeric join
last run:
2025-04-11 13:03:53
1
ceil - New snippets
-
PHP 8.3 / MySQL 8.0 print_r ceil
added at:
2025-07-07 09:01:51
2
-
PHP 8.1 / MySQL 8.0 ceil is_numeric join
added at:
2025-04-11 13:03:53
1
-
PHP 8.0 / MariaDB 11.4 preg_match printf ceil
added at:
2025-03-17 04:44:53
1
-
PHP 8.3 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
added at:
2025-01-31 18:25:19
5
-
PHP 8.2 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
added at:
2025-01-31 18:25:17
5
-
PHP 8.4 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r mysqli_query mysqli_num_rows ceil print_r
added at:
2025-01-31 18:22:09
7
-
PHP 8.1 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
added at:
2025-01-31 18:03:11
8
-
PHP 8.0 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
added at:
2025-01-31 18:03:09
8
-
PHP 7.4 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
added at:
2025-01-31 18:03:08
8