Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get the integer value of a variable
<?php intval(mixed $value, int $base = 10): int
<?php             return new DirectoryAttributes(rtrim($path, '/'), null, $lastModified);

        }



        $fileSize = intval($info['size']);

        $mimeType = $info['contentType'] ?? null;



        return new FileAttributes($path, $fileSize, null, $lastModified, $mimeType, $info);