12 $_GET = array('a'=>'b','c'=>'3.4','r'=>array(1,2,3));
13 $_SERVER['QUERY_STRING'] = 'a=b&c=3.4&r[0]=1&r[1]=2&r[2]=3';
15 var_dump(HttpQueryString::singleton()->get());
16 var_dump(HttpQueryString::singleton()->get('n'));
17 var_dump(HttpQueryString::singleton()->get('a'));
18 var_dump(HttpQueryString::singleton()->get('a', "i", 0, true));
19 var_dump(HttpQueryString::singleton()->get('a', "string", 'hi!'));
20 var_dump(HttpQueryString::singleton()->get('c'));
21 var_dump(HttpQueryString::singleton()->get('c', HttpQueryString::TYPE_INT));
22 var_dump(HttpQueryString::singleton()->get('c', HttpQueryString::TYPE_FLOAT));
23 var_dump(HttpQueryString::singleton()->get('c', HttpQueryString::TYPE_BOOL));
24 var_dump(HttpQueryString::singleton()->get('r'));
25 var_dump(HttpQueryString::singleton()->get('r', HttpQueryString::TYPE_ARRAY));
26 var_dump(HttpQueryString::singleton()->get('r', HttpQueryString::TYPE_OBJECT));
28 HttpQueryString::singleton()->set(new HttpQueryString(false, 'z[0]=2'));
30 HttpQueryString::singleton()->set(array('a'=>'b', 'c'=> "3.4"));
31 HttpQueryString::singleton()->set(array('a' => NULL));
33 var_dump(HttpQueryString::singleton());
35 var_dump($_SERVER['QUERY_STRING']);
41 string(42) "a=b&c=3.4&r%5B0%5D=1&r%5B1%5D=2&r%5B2%5D=3"
66 object(stdClass)#%d (%d) {
74 object(HttpQueryString)#1 (2) {
75 ["queryArray:private"]=>
94 ["queryString:private"]=>
95 &string(49) "c=3.4&r%5B0%5D=1&r%5B1%5D=2&r%5B2%5D=3&z%5B0%5D=2"
115 string(49) "c=3.4&r%5B0%5D=1&r%5B1%5D=2&r%5B2%5D=3&z%5B0%5D=2"