Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP PHP Arrays and Control Structures PHP Arrays Mixing and Sorting

Arikaturika Tumojenko
Arikaturika Tumojenko
8,897 Points

How would I access "March" using the $seasons array?

What's the correct answer for this question of this quiz?

1 Answer

Hey man,

If you use the $seasons array you will see that Spring => $spring has been assigned. so you pick the array $spring over Spring. Then you see what value "March" has in the array. This would be position 0, because an array always starts with index 0.

So the solution is:

 $seasons["Spring"][0]

I hope that helped you out. Keep coding! - Phil