如何从url链接本身获取数据

I have created a verification link which is being sent as an email to anyone who is registring to my site.

I want to be able to take data from url itself for example if the link is

http://localhost/verify.php?email=zeeshanahmed95@gmail.com?&activate=XacSwLp4xPuMm0yHE5i7h5kK8xBw0hN5

I want to extract data from URL from the part which is email and activate and store it in a variable in PHP.

PHP has a built in $_GET variable set which should suit you fine. Just comment if you need help.

$_GET['email']
$_GET['activate']

If the URL is just a string you have in data, then you can use parse_str...

$strURL = 'http://localhost/verify.php?email=zeeshanahmed95@gmail.com?&activate=XacSwLp4xPuMm0yHE5i7h5kK8xBw0hN5'
$arrVariables = array();
parse_str($strURL, $arrVariables);
echo $arrVariables['email'];