Now, the so-called foreach loop works only on arrays, because it goes through each of their elements.

Nice! In every so-called iteration, the value of an element is stored in $hero.

Don't we want to use a foreach loop to echo each element in the array?