I need to get url value form the given url string, for example I have below url
$url = http://www.example.com/news?q=string&f=true&id=1233&sort=true&pf=http%3A%2Fo%2fox.ru
from above url if any url is present means I need that value, above is not constant, randomly I get any format of url , But I need only the url from the given URL string.I reffered here How to get parameters from a URL string?. In that they use static parameter , but I dont know which parameter have the url value. Any help is appreciated.