How to use parse_url and pathinfo to analyze the path and file structure of a URL?
parse_url is a built-in function in PHP that parses URLs and returns their components, such as protocols, host names, paths, query strings, etc.
parse_url