http_build_url()
http_build_url - Build an URL
Syntax
string http_build_url (
mixed $url,
mixed $parts,
int $flags,
array &$new_url)
Arguments
- url - (part(s) of) an URL in form of a string or associative array like parse_url() returns
- parts - same as the first argument
- flags - a bitmask of binary or\'ed HTTP_URL constants; HTTP_URL_REPLACE is the default
- new_url - if set, it will be filled with the parts of the composed url like parse_url() would return
Description
Build an URL.
Version
PHP PECL pecl_http >= 0.21.0
Return value
Returns the new URL as string on success or FALSE on failure.