concrete/src/File/Service/Mime.php
public function mimeFromExtension($ext)
    {
        $ext = strtolower($ext);
        if (array_key_exists($ext, self::$mime_types_and_extensions)) {
            return self::$mime_types_and_extensions[$ext];
        }

        return false;
    }
public function mimeFromExtension($ext)
    {
        $ext = strtolower($ext);
        if (array_key_exists($ext, self::$mime_types_and_extensions)) {
            return self::$mime_types_and_extensions[$ext];
        }

        return false;
    }
public function mimeFromExtension ( $ ext ) { $ ext = strtolower ( $ ext ) ; if ( array_key_exists ( $ ext , self :: $ mime_types_and_extensions ) ) { return self :: $ mime_types_and_extensions [ $ ext ] ; } return false ; }
Converts a file extension into a mime type.

@param string $ext

@return string|bool mime type string or false
Converts a file extension into a mime type .