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

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