public static function getExtensions(array $mimetypes)
    {
        $extensions = [];
        foreach ($mimetypes as $mimetype) {
            $extension = static::getExtensionByMime($mimetype, false);
            if ($extension && !\in_array($extension, $extensions, true)) {
                $extensions[] = $extension;
            }
        }

        return $extensions;
    }
public static function getExtensions(array $mimetypes)
    {
        $extensions = [];
        foreach ($mimetypes as $mimetype) {
            $extension = static::getExtensionByMime($mimetype, false);
            if ($extension && !\in_array($extension, $extensions, true)) {
                $extensions[] = $extension;
            }
        }

        return $extensions;
    }
public static function getExtensions ( array $ mimetypes ) { $ extensions = [ ] ; foreach ( $ mimetypes as $ mimetype ) { $ extension = static :: getExtensionByMime ( $ mimetype , false ) ; if ( $ extension && ! \ in_array ( $ extension , $ extensions , true ) ) { $ extensions [ ] = $ extension ; } } return $ extensions ; }
Get all the extensions for an array of mimetypes

@param array $mimetypes
@return array
Get all the extensions for an array of mimetypes