Is there a way to build a query automatically with http_build_query
using parameters with the same name?
If I do something like
array('foo' => 'x', 'foo' => 'y');
They are obviously overwritten within the array, but even if I do:
array('foo' => array('x', 'y'));
The function creates something like foo[0]=x&foo[1]
, which isn't what I want, since I need the parameters in this format foo=x&foo=y
.