base_convert
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Convert a number between arbitrary bases
base_convert
(
string $num
,
int $from_base
,
int $to_base
):
string
$filePerms
=
fileperms
(
$file
);
$filePerms
=
substr
(
sprintf
(
'%o'
,
$filePerms
), -
3
);
return (int)
base_convert
(
$filePerms
,
8
,
10
);
}
}
tests/Filesystem/FilesystemTest.php