Annotation of embedaddon/php/ext/standard/tests/strings/http_build_query.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: http_build_query() function
3: --FILE--
4: <?php
5:
6: $array = array("foo"=>"bar","baz"=>1,"test"=>"a ' \" ", "abc");
7: var_dump(http_build_query($array));
8: var_dump(http_build_query($array, 'foo'));
9: var_dump(http_build_query($array, 'foo', ';'));
10:
11: ?>
12: --EXPECT--
13: string(35) "foo=bar&baz=1&test=a+%27+%22+&0=abc"
14: string(38) "foo=bar&baz=1&test=a+%27+%22+&foo0=abc"
15: string(38) "foo=bar;baz=1;test=a+%27+%22+;foo0=abc"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>