Build a URL. The parts of the second URL will be merged into the first according to the flags argument.
public static buildAll ( mixed $url, mixed $parts = [], integer $flags = self::URL_REPLACE, array &$newUrl = [] ) : string | ||
$url | mixed | (part(s) of) an URL in form of a string or associative array like parse_url() returns |
$parts | mixed | same as the first argument |
$flags | integer | a bitmask of binary or'ed HTTP_URL constants; HTTP_URL_REPLACE is the default |
$newUrl | array | if set, it will be filled with the parts of the composed url like parse_url() would return |
return | string |