Answer the question
In order to leave comments, you need to log in
How to extract data from a link?
You need to get the id parameter from the link: www.domen.ru/test.php#id=123
I know how this is done if GET, but how to be here?
I found only this: parse_url , but it's not clear how to pass a link to it.
Answer the question
In order to leave comments, you need to log in
explode + parse_str
ps.
If getting from the link means getting the hash of the current open page, then this is not PHP.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question