$referrer_url = $_SERVER['HTTP_REFERER'];
$query_string = parse_url($referrer_url, PHP_URL_QUERY);
$referrer_url_without_query_str = str_replace($query_string, '', $referrer_url);
Advertisements