I want to construct this url using http_build_query:
https://www.googleapis.com/freebase/v1/topic/m/0d6lp?filter=/common/topic/notable_for&filter=/common/topic/alias
Please note that the "filter=" parameter comes twice in the url, to specify two filters.
I tried to do it this way but having a problem:
$service_url = 'https://www.googleapis.com/freebase/v1/topic';
$mid = '/m/0d6lp';
$params = array('filter' => '/common/topic/notable_for', 'filter' => '/common/topic/alias');
$url = $service_url . $mid . '?' . http_build_query($params);
The problem is as 'filter' array key repeats twice, only the last parameter appears in the http_build_query. How do I construct the original url with two filters?