http_build_query($array)
will convert array to the format of a=1&b=2
,
But how to make it convert to the format of a=1;b=2
?
Is there a native function there?
http_build_query($array)
will convert array to the format of a=1&b=2
,
But how to make it convert to the format of a=1;b=2
?
Is there a native function there?
The third parameter to http_build_query is the separator; call it with http_build_query($array, "", ";")
to get what you're after.