1 # static string http\Env::negotiate(string $params, array $supported[, string $prim_typ_sep[, array &$result]])
3 Generic negotiator. For specific client negotiation see http\Env::negotiateContentType() and related methods.
6 > The first elemement of $supported serves as a default if no operand matches.
11 HTTP header parameter's value to negotiate.
13 List of supported negotiation operands.
14 * Optional string $prim_typ_sep
15 A "primary type separator", i.e. that would be a hyphen for content language negotiation (en-US, de-DE, etc.).
16 * Optional reference array &$result
17 Out parameter recording negotiation results.
21 * NULL, if negotiation fails.
22 * string, the closest match negotiated, or the default (first entry of $supported).