intval
brefphp/bref
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get the integer value of a variable
intval
(
mixed $value
,
int $base
=
10
):
int
public function
getRemainingTimeInMillis
():
int
{
return
$this
->
deadlineMs
-
intval
(
microtime
(
true
) *
1000
);
}
src/Context/Context.php
$contextBuilder
->
setAwsRequestId
(
$value
);
}
if (
$name
===
'lambda-runtime-deadline-ms'
) {
$contextBuilder
->
setDeadlineMs
(
intval
(
$value
));
}
if (
$name
===
'lambda-runtime-invoked-function-arn'
) {
$contextBuilder
->
setInvokedFunctionArn
(
$value
);
src/Runtime/LambdaRuntime.php