Assuming a URL of:
www.example.com/?val=1#part2
PHP can read the request variables val1 using the GET array.
val1
Is the ha
I think the hash-value is only used client-side, so you can't get it with php.
you could redirect it with javascript to php though.