- file_get_contents: documentation ( source)
- json_decode: documentation ( source)
<?php
$tracking_no = "EM909320015MY";
$url = "http://www.17track.net/r/handlertrack.ashx?callback=callback&num=" . $tracking_no;
$json_query = file_get_contents($url);
$json = json_decode($json_query);
foreach($json->{'dat'}->{'z1'} as $row) {
echo $row->{"a"} . "<br>";
echo $row->{"c"} . "<br>";
echo $row->{"z"} . "<br><br><br>";
}