summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/http_build_query.phpt
blob: 4ed7fda43d55614b10e9ff096e353f6546723fd7 (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--
string(35) "foo=bar&baz=1&test=a+%27+%22+&0=abc"
string(38) "foo=bar&baz=1&test=a+%27+%22+&foo0=abc"
string(38) "foo=bar;baz=1;test=a+%27+%22+;foo0=abc"