I’m currently trying to extract the values of following API call:
http://api.hostip.info/get_html.php?ip=12.215.42.19&position=true
The result should maybe be an array like:
$my = array(
'country_name' => 'UNITED STATES',
'country_iso' => 'US',
'city_name' => 'Sugar Grove, IL',
'latitude' => 41.7696,
'longitude' => -88.4588
);
Anyone has a clever regexp to make this happen?
Thanks in advance!
Output: