fruit.php exercise using for loops and foreach loops