public function matchMimetypeExtension($mimetype, $extension)
    {
        $mime_extensions = self::$mimetypes_extensions;
        if (isset($mime_extensions[$extension]) && $mime_extensions[$extension] == $mimetype) {
            return true;
        }

        return false;
    }
public function matchMimetypeExtension($mimetype, $extension)
    {
        $mime_extensions = self::$mimetypes_extensions;
        if (isset($mime_extensions[$extension]) && $mime_extensions[$extension] == $mimetype) {
            return true;
        }

        return false;
    }
public function matchMimetypeExtension ( $ mimetype , $ extension ) { $ mime_extensions = self :: $ mimetypes_extensions ; if ( isset ( $ mime_extensions [ $ extension ] ) && $ mime_extensions [ $ extension ] == $ mimetype ) { return true ; } return false ; }
Check if the mimetype match with the extension

@param string $mimetype
@param string $extension
@return bool
Check if the mimetype match with the extension