<?php $url = "?a=b&f=g#foo#f"; $split = preg_replace("/#.*$/", "", $url); var_dump($split); ?>
You have javascript disabled. You will not be able to edit any code.