Alrright I am running a loop while $i <= 8
then I have declared variables at the top of $hr1 - $hr8 to equal different times of the day
I want to assign the variable $hour to equal the value of the correct $hr number
Or
If there is a way that I could just output the value of $hr + the value of the loop counter
Does this make sense?
I am not sure so I will put some sample code
$hr1 = 7:00am;
$hr2 = 8:00am;
$i = 1
WHILE ($i <=2) {
//output the value of the corresponding $hr variable above