1--TEST--
2http_build_query() function
3--FILE--
4<?php
5
6$array = array("foo"=>"bar","baz"=>1,"test"=>"a ' \" ", "abc", 'float' => 10.42, 'true' => true, 'false' => false);
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(62) "foo=bar&baz=1&test=a+%27+%22+&0=abc&float=10.42&true=1&false=0"
14string(65) "foo=bar&baz=1&test=a+%27+%22+&foo0=abc&float=10.42&true=1&false=0"
15string(65) "foo=bar;baz=1;test=a+%27+%22+;foo0=abc;float=10.42;true=1;false=0"
16