1--TEST--
2http_build_query() function
3--FILE--
4<?php
5
6$array = array("foo"=>"bar","baz"=>1,"test"=>"a ' \" ", "abc");
7var_dump(http_build_query($array));
8var_dump(http_build_query($array, 'foo'));
9var_dump(http_build_query($array, 'foo', ';'));
10
11?>
12--EXPECT--
13string(35) "foo=bar&baz=1&test=a+%27+%22+&0=abc"
14string(38) "foo=bar&baz=1&test=a+%27+%22+&foo0=abc"
15string(38) "foo=bar;baz=1;test=a+%27+%22+;foo0=abc"
16