typo, parameter and type fixes
[mdref/mdref-http] / http / Env / negotiateCharset.md
1 # static string http\Env::negotiateCharset(array $supported[, array &$result])
2
3 Negotiate the client's preferred character set.
4
5 > ***NOTE:***
6 > The first element of $supported character sets serves as a default if no character set matches.
7
8 ## Params:
9
10 * array $supported
11 List of supported content character sets.
12 * Optional array &$result
13 Out parameter recording negotiation results.
14
15 ## Returns:
16
17 * NULL, if negotiation fails.
18 * string, the negotiated character set.