Merge two urls using PHP
This is a handy function for combining two urls. The urls could be strings or parts in an array (as you’d get from the parse_url function), or you can mix-and-match. Check out the examples in the docblock below to see what I mean.
loading gist...