intval
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get the integer value of a variable
intval
(
mixed $value
,
int $base
=
10
):
int
protected function
ensurePermissionsAreCorrect
(
$path
)
{
if (
is_null
(
$this
->
filePermission
) ||
intval
(
$this
->
files
->
chmod
(
$path
),
8
) ==
$this
->
filePermission
) {
return;
}
src/Illuminate/Cache/FileStore.php
{
Route
::
get
(
'/foo/{id}'
, function (
Request $request
,
$id
) {
return
$request
->
hasValidSignature
()
&&
intval
(
$id
) ===
1
&&
$request
->
has
(
'paramEmpty'
)
&&
$request
->
has
(
'paramEmptyString'
)
&&
$request
->
query
(
'paramWithValue'
) ===
'value'
tests/Integration/Routing/UrlSigningTest.php