-# static string http\Env::negotiateEncoding(array $supported[, array &$result)
+# static string http\Env::negotiateEncoding(array $supported[, array &$result])
Negotiate the client's preferred encoding.
-> ***NOTE:*** The first elemement of $supported encodings serves as a default if no encoding matches.
+> ***NOTE:***
+> The first element of $supported encodings serves as a default if no encoding matches.
## Params:
-* ```array $supported```
+* array $supported
List of supported content encodings.
-* Optional reference ```array &$result```
+* Optional array &$result
Out parameter recording negotiation results.
## Returns:
-* ```NULL```, if negotiation fails.
-* ```string```, the negotiated encoding.
+* NULL, if negotiation fails.
+* string, the negotiated encoding.