php parse url

parse_url($url, PHP_URL_PATH)
Enchanting Elephant