Is there any reliable way in PHP to clean a URL of anchor tags?
So input:
http://site.com/some/#anchor
Outputs:
http://site.com/some/
Alternative way
$url = 'http://site.com/some/#anchor'; echo str_replace('#'.parse_url($url,PHP_URL_FRAGMENT),'',$url);