0
jsonファイルからデータを取得してサイトに表示しています。何らかの理由でIDを表示しません。ご案内ください。JSONデータからIDが表示されない
function getJSON() {
/** These are the lyrics to Hello Dolly */
$slices = json_decode(file_get_contents('http://pf.tradetracker.net/?aid=1&type=json&encoding=utf8&fid=251713&categoryType=2&additionalType=2&limit=1000',true));
if ($slices) {
foreach ($slices as $slice) {
$ID = $slice->products->ID;
echo $ID;
}
}
}