I want to parse URL with hash # mark and then use it in PHP

You can use the PHP function "parse_url" to extract the hash value from the URL and then store it in a variable to use in your PHP code.

Related articles:

How to Extract and Use URL Hash Mark in PHP
When working with URLs, the hash mark (#) is commonly used to indicate a specific section within a page. As a PHP developer, you may find it useful to extract and use information from the hash mark to enhance the functionality of your application.

Parsing URLs with Hash Marks in PHP: A Step-by-Step Guide
URLs with hash marks, also known as fragments, can be challenging to parse in PHP because the hash mark is used by browsers to indicate the location of an anchor within the page. However, it's possible to extract information from the fragment using PHP's built-in functions.

Using URL Fragments (Hash Marks) in PHP: Tips and Tricks
URL fragments, also known as hash marks, are a component of website URLs that come after the main URL with a "#" character. They are typically used to link to a specific part of a webpage rather than just the top of the page. For example, a URL fragment might link to a specific section of an article or to a particular comment on a blog post.