parse_url()
for URL Parsingparse_url()
for URL ParsingThe parse_url()
function parses a URL and returns its components as an associative array. This is useful for extracting specific parts of a URL, such as the host, path, query string, and more.