parse_url

(PHP 3, PHP 4 )

parse_url -- Parse a URL and return its components

Description

array parse_url (string url)

This function returns an associative array returning any of the various components of the URL that are present. This includes the "scheme", "host", "port", "user", "pass", "path", "query", and "fragment".