1 # string http\Header::negotiate(array $supported[, array &$result])
3 Negotiate the header's value against a list of supported values in $supported.
4 Negotiation operation is adopted according to the header name, i.e. if the
5 header being negotiated is Accept, then a slash is used as primary type
6 separator, and if the header is Accept-Language respectively, a hyphen is
10 > The first elemement of $supported serves as a default if no operand matches.
15 The list of supported values to negotiate.
16 * Optional reference array &$result
17 Out parameter recording the negotiation results.
21 * NULL, if negotiation fails.
22 * string, the closest match negotiated, or the default (first entry of $supported).