FOF30\Platform\Base\Filesystem::getExt PHP Method

getExt() public method

Gets the extension of a file name
public getExt ( string $file ) : string
$file string The file name
return string The file extension
    public function getExt($file)
    {
        $dot = strrpos($file, '.') + 1;
        return substr($file, $dot);
    }