I am trying to build a url with a query using the url() function.
$options = array( 'query' => array( 'parameter1' => 'value1', 'parameter2' => 'value1,value2', ), 'absolute' => TRUE, 'external' => TRUE, ); url ('https://somesite.com/', $options);
The URL becomes:
So commas become encoded as %2C.
How can I build a query that has parameters with multiple values separated by comma?
EDIT: I have to deal with an old API that does not recognize %2C as comma characters, so actual commas have to be present in the end url.