PHP build_http_url function

http_build_url is a simple function that takes two URLs, either as strings or in the format returned from parse_url(), and a bitmask of flags that dictates how to combine the URLs.

Versions

The code

Example

Result