1 # class http\Params implements ArrayAccess
3 Parse, interpret and compose HTTP (header) parameters.
9 2.0.1 | Added [RFC5987](http://tools.ietf.org/html/rfc5987) support
18 $t = "p1*=utf-8'de's$u$s,p2*=utf-8''hei$s;a1*=utf-8''a$s;a2*=utf-8''e$s;a3=no,p3=not";
19 $p = new http\Params($t);
21 var_dump($p->params, $p->toString());
74 string(98) "p1*=utf-8'de's%C3%BC%C3%9F,p2*=utf-8''hei%C3%9F;a1*=utf-8''a%C3%9F;a2*=utf-8''e%C3%9F;a3=no,p3=not"
80 The default parameter separator (",").
82 The default argument separator (";").
84 The default value separator ("=").
86 Empty param separator to parse cookies.
88 Do not interpret the parsed parameters.
90 Interpret input as default formatted parameters.
92 Urldecode single units of parameters, arguments and values.
94 Parse sub dimensions indicated by square brackets.
96 Parse URL querystring (same as http\Params::PARSE_URLENCODED|http\Params::PARSE_DIMENSION).
98 Parse [RFC5987](http://tools.ietf.org/html/rfc5987) style encoded character set and language information embedded in HTTP header params.
102 * public array $params = NULL
103 The (parsed) parameters.
104 * public array $param_sep = http\Params::DEF_PARAM_SEP
105 The parameter separator(s).
106 * public array $arg_sep = http\Params::DEF_ARG_SEP
107 The argument separator(s).
108 * public array $val_sep = http\Params::DEF_VAL_SEP
109 The value separator(s).
110 * public int $flags = http\Params::PARSE_DEFAULT
111 The modus operandi of the parser. See http\Params::PARSE_* constants.