0 kiran answered Nov 30 '21 00:00 parse_url() function can be used to parse the url in the PHP $url="https://arrayoverflow.com/"; print_r(parse_url($url)); Edit Answer