Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Convert a number between arbitrary bases
<?php base_convert(string $num, int $from_base, int $to_base): string
<?php         $filePerms = fileperms($file);

        $filePerms = substr(sprintf('%o', $filePerms), -3);



        return (int) base_convert($filePerms, 8, 10);

    }

}