src/MimeType.php
public static function getExtensions(string $mime) : array
    {
        $extensions = [];

        foreach (static::$_types as $extension => $mimeType) {
            if ($mimeType === $mime) {
                $extensions[] = $extension;
            }
        }

        return $extensions;
    }
public static function getExtensions(string $mime) : array
    {
        $extensions = [];

        foreach (static::$_types as $extension => $mimeType) {
            if ($mimeType === $mime) {
                $extensions[] = $extension;
            }
        }

        return $extensions;
    }
public static function getExtensions ( string $ mime ) : array { $ extensions = [ ] ; foreach ( static :: $ _types as $ extension => $ mimeType ) { if ( $ mimeType === $ mime ) { $ extensions [ ] = $ extension ; } } return $ extensions ; }
Get extensions for one mime

@param string $mime

@return array
Get extensions for one mime