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