How can I remove all GET variables from a string apart from ?v=
E.g: the below url would remove &feature=related
Would this be safe to simple remove everything after the first & or is there a more robust way of doing this in PHP?
$safe_url= substr($url, 0, strpos($url, "&"));