This question already has an answer here:
I have got the following string
http://www.domain.com/map.aspx?isTrafficAlert=true&lat=51.529900&lon=-0.785384
I need to extract lat and lon from this string.
I got lat=51.529900 and lon=-0.785384 using the following code
$str = "http://www.domain.com/map.aspx?isTrafficAlert=true&lat=51.529900&lon=-0.785384";
list(,$lat,$lon) = explode("&",$str);
But then can't get the number.
Any help is highly appreciated. Thanks in advance.
</div>