round
brefphp/bref
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Rounds a float
round
(
int
|
float $num
,
int $precision
=
0
,
int $mode
=
PHP_ROUND_HALF_UP
):
float
if (
$_SERVER
[
'REQUEST_METHOD'
] ===
'POST'
) {
$body
=
file_get_contents
(
'php://input'
);
$bodySize
=
round
(
strlen
(
$body
) /
1024
/
1024
);
echo
"Received
{
$bodySize
}
Mb"
;
return;
}
tests/Functional/fpm/index.php