Source Code:
(back to article)
<?php $base_url = "http://www.beispiel.com"; $query_params = ["param1" => "wert1", "param2" => "wert2"]; $anchor = "abschnitt1"; $url = $base_url . "?" . http_build_query($query_params) . "#" . $anchor; echo $url;
Result:
Report an issue