- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
- Fatal error: Cannot use [] for reading in /in/uaeP1 on line 4
Process exited with code 255.
<?php
$days[] = json_decode(file_get_contents('config/schedule.json'), TRUE);
foreach($days[] as $day) {
echo '<div class="day">';
echo '<h2>' . $day . '</h2>';
echo '<ul>';
foreach($days[][] as $time=>$item) {
echo '<li>';
echo '<span class="time">' . $time . '</span> ';
echo $item;
echo '</li>';
}
echo '</ul>';
echo '</div>';
}