foreach ( $results['0']['forecast']['daily'] as $daily ){ // date in a string format $date = $daily['date']; //Convert the date string into a unix timestamp. $unixTimestamp = strtotime($date); //return just the day full name of the day using PHP's date function. $dayOfWeek = date("l", $unixTimestamp); echo '<div class="column-fifth">'; echo 'Date: ' . $daily['date'] . '<br>'; echo '<p><strong>' . $dayOfWeek . ' Night</strong></p>'; echo '<img src="' . $daily['night']['icon'] . '" style="max-width:100px;"> <br>'; echo 'High: ' . $daily['night']['temp'] . '<br>'; echo 'Snow: ' . $daily['night']['snow'] . '<br>'; echo $daily['night']['weather'] . '<br>'; echo 'Wind Speed: ' . $daily['night']['wind']['speed'] . '<br>'; echo 'Wind Direction: ' . $daily['night']['wind']['direction'] . '<br>'; echo 'Wind Gusts: ' . $daily['night']['wind']['gust'] . '<br>'; echo 'Snow Level: ' . $daily['night']['snow_level'] . '<br>'; echo 'Cloud Cover: ' . $daily['night']['cloud_cover'] . '<br>'; echo '</div>'; };