diff --git a/reference/url/functions/parse-url.xml b/reference/url/functions/parse-url.xml index 3274c1bcb4..bb7d5c2807 100644 --- a/reference/url/functions/parse-url.xml +++ b/reference/url/functions/parse-url.xml @@ -49,7 +49,9 @@ PHP_URL_USER, PHP_URL_PASS, PHP_URL_PATH, PHP_URL_QUERY or PHP_URL_FRAGMENT to retrieve just a specific - URL component as a string. + URL component as a string (except when + PHP_URL_PORT is given, in which case the return + value will be an integer). @@ -112,9 +114,10 @@ If the component parameter is specified, - parse_url returns a string instead of an - array. If the requested component doesn't exist within the - given URL, &null; will be returned. + parse_url returns a string (or an + integer, in the case of PHP_URL_PORT) + instead of an array. If the requested component doesn't exist + within the given URL, &null; will be returned.