This question already has an answer here:
- How to get parameters from a URL string? 12 answers
I am new to php. Suppose I have a string variable as followings:
$val="https://www.example.com?id=1001";
Is there any way to get the value of the id part in another variable $id? So I just want to assign 1001 into $id using variable $val; How will I do it?
</div>