Get URL Parameters from referer

If tab=tab is in the URL then:

global $_GET;
var_dump($_GET); // debugging only; You should be able to see what you need.

That is pure PHP. If your really need to process that string (I don’t know why your would) use parse_url then use parse_str on the query part of it.

$path = parse_url($url);
$path = parse_str($path, $output);
var_dump($output); // again, just debugging

For completeness, please don’t use any of those values without validating them.

Did I misunderstand you?

tech