{"data"}; $counter=0; $flag=0; echo ""; echo ""; foreach($datas as $data) { if($counter%3==0) { echo ""; } $img = ($data->{"images"}->{"thumbnail"}->{"url"}); echo ""; $counter++; // echo"
"; } echo ""; echo "
   
  
"; ?> });