PHP Exercise 3 / 15

Simple PHP Arrays

Medium 18 points

Create a simple array with 3 fruits, then display each fruit with a foreach loop.

Simple PHP arrays are numerically indexed. array() or [] creates an array. foreach iterates through all elements.

Well done! 🎉
Your answer is correct! You earned 18 points.
Your code PHP
Result