Source Code:
(back to article)
<?php $query_array = [ "key1" => "value1", "key2" => "value2", "key3" => "value3", ]; // Set the separator character to ";" $query_string = http_build_query($query_array, "", ";"); echo $query_string; // Output: key1=value1;key2=value2;key3=value3
Result:
Report an issue