<?php $url = "http://foobar.com/foo/bar/1?baz=qux#fragment/foo"; echo parse_url($url, PHP_URL_PATH);
You have javascript disabled. You will not be able to edit any code.