src/Utilities/MimeTypes.php
public static function getExtension($mimeType)
    {
        if (is_string($mimeType) && in_array($mimeType, self::$mimeTypes, true)) {
            $data = Arrays::setKeysAsValues(self::$mimeTypes, false);

            return $data[$mimeType];
        }

        return '';
    }
public static function getExtension($mimeType)
    {
        if (is_string($mimeType) && in_array($mimeType, self::$mimeTypes, true)) {
            $data = Arrays::setKeysAsValues(self::$mimeTypes, false);

            return $data[$mimeType];
        }

        return '';
    }
public static function getExtension ( $ mimeType ) { if ( is_string ( $ mimeType ) && in_array ( $ mimeType , self :: $ mimeTypes , true ) ) { $ data = Arrays :: setKeysAsValues ( self :: $ mimeTypes , false ) ; return $ data [ $ mimeType ] ; } return '' ; }
Returns extension for given mime type

@param string $mimeType The mime type, e.g. "video/mpeg"
@return array|string
Returns extension for given mime type