there is a json array, how do i print the values in this order:
Datam - namel - namel - namel Datam - namel - namel [ {"MIGX_id":"1","datam":"2018-03-15 01:30:00","logo":"img/aside-soccer.png","namel":"АНГЛИЯ - ЧЕМПИОН-ЛИГА","command":"Вулверхэмптон - Куинз Парк Рейнджерс","koef":"1.97"}, {"MIGX_id":"2","datam":"2018-03-29 01:30:00","logo":"img/aside-soccer.png","namel":"АНГЛИЯ - ЧЕМПИОН-ЛИГА","command":"Вулверхэмптон - Куинз Парк Рейнджерс","koef":"1.97"} ] while at me so, but I am in a stupor something
$array = json_decode($parent_name['vl'], true); foreach ($array as $elem){ if ($elem['datam'] >= $databegin && $elem['datam'] <= $dataend && $elem['koef'] >=1.7 && $elem['koef'] <= 2.3){ echo '<tr> <td class="flag" style="background-image: url('.$elem['logo'].');"> </td> <td class="title"> <small>'.$elem['namel'].'</small> <span class="time">'.date("hi", strtotime($elem['datam'])).'</span> <span class="fore"> Прогноз на матч <ins>'.$elem['command'].'</ins></span> </td> <td class="coeff main-coeff"> <a href=""> '.$elem['koef'].' </a> </td> </tr>'; $flag = $flag + 1; break; } } 