Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $count = 0;
- foreach ($weather_data['forecast'] as $forecast_index => $day_forecast) {
- if ($count === 5) {
- break;
- }
- ?>
- <div class="td-weather-days">
- <div class="td-day-<?php echo $forecast_index ?>"><?php echo $day_forecast['day_name'] ?></div>
- <div class="td-day-degrees">
- <span
- class="td-degrees-<?php echo $forecast_index ?>"><?php echo $day_forecast['day_temp'][$current_unit] ?></span>
- <span class="td-circle">°</span>
- </div>
- </div>
- <?php
- $count++;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment