php sscanf problem

biamWippism

New Member
I have this string: \[code\]City Lat/Lon: (50.7708) / (6.1053)\[/code\]and I try to extract those two numbers with sscanf in php this way:\[code\]$result = post_request('http://www.ip-address.org/lookup/ip-locator.php', $post_data);$start =strpos($result['content'], "City Lat/Lon");$end = strpos($result['content'], "IP Language");$sub = substr($result['content'],$start,$end-$start);sscanf($sub, "City Lat/Lon: (%f) / (6.1053)",$asd);echo $asd;\[/code\]but it doesn't give me any result nor errors what should I change?it works though this way \[code\]sscanf("City Lat/Lon: (50.7708) / (6.1053)", "City Lat/Lon: (%f) / (%f)",$asd,$wer);\[/code\]
 
Top