Say e.g. i have a URI http://127.0.0.1/somecontroller/someaction#12345 that takes me to the someAction() action of the someController controller. F
http://127.0.0.1/somecontroller/someaction#12345
someAction()
You cannot use:
explode("#",$_SERVER['REQUEST_URI'])
because when you call $_SERVER['REQUEST_URI'], you never get the word after #. For example your link www.example.com/about#test, and when you call $_SERVER['REQUEST_URI'], you just get www.example.com/about.
$_SERVER['REQUEST_URI']
#
www.example.com/about#test
www.example.com/about