Prevent conversion of HTML entities.
Please look at the code below:
$array = array(
"id" => 123456,
"currency" => "EUR",
);
var_dump(http_build_query($array));
//OUTPUT:
string 'id=123456¤cy=EUR' (length=22)
Ok that works. But some servers give me this output:
string(25) "pspid=123456¤cy=EUR"
So, some servers treat ¤
as an HTML entity. But I don't want that.
How can I avoid the unwanted conversion of HTML Entities?