parse_url
Parse a URL and return its components
Description
arrayparse_url
stringurl
This function returns an associative array returning any of the
various components of the URL that are present. This includes the
scheme - e.g. http://
host
port
user
pass
path
query - after the question mark ?
fragment - after the hashmark #
See also pathinfo.