src/DataFormatter.php
public static function for_mimetypes($mimetypes)
    {
        foreach ($mimetypes as $mimetype) {
            if ($formatter = self::for_mimetype($mimetype)) {
                return $formatter;
            }
        }

        return false;
    }
public static function for_mimetypes($mimetypes)
    {
        foreach ($mimetypes as $mimetype) {
            if ($formatter = self::for_mimetype($mimetype)) {
                return $formatter;
            }
        }

        return false;
    }
public static function for_mimetypes ( $ mimetypes ) { foreach ( $ mimetypes as $ mimetype ) { if ( $ formatter = self :: for_mimetype ( $ mimetype ) ) { return $ formatter ; } } return false ; }
Get formatter for the first matching mimetype.
Useful for HTTP Accept headers which can contain
multiple comma-separated mimetypes.

@param array $mimetypes
@return DataFormatter
Get formatter for the first matching mimetype . Useful for HTTP Accept headers which can contain multiple comma - separated mimetypes .