Opdracht 1: Array kleur

https://www.w3resource.com/php-exercises/php-array-exercises.php

Schrijf een script dat de kleuren van de titels veranderen als het ochtend (1 tot 12 u, middag (12 tot 17 u) en avond (17 tot 24 u)

Tip:
$color = array('white', 'green', 'red', 'blue', 'black');
	echo "The memory of that scene for me is like a frame of film forever frozen at that moment: the $color[2] carpet, the $color[1] lawn, the $color[0] house, the leaden sky. The new president and his first lady. - Richard M. Nixon"."\n";

<?php
$color = array('white', 'green', 'red', 'blue', 'black');
echo "The memory of that scene for me is like a frame of film forever frozen at that moment: the $color[2] carpet, the $color[1] lawn, the $color[0] house, the leaden sky. The new president and his first lady. - Richard M. Nixon"."\n";
?>