I am trying to solve a problem where I have an array of days like this
$days = array ('Monday','Tuesday ','Wednesday ','Thursday ','friday');
I want to print them out 66 times in a loop, and everytime it gets to Friday the array reset itself and print Monday. I tried this:
$days = current($days);
while($days <= 66){
echo $days;
next ($days);
if (end ($days)){
reset($days);
}