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 trialjasonjones5
Courses Plus Student 5,571 PointsWhen is an array not an array?
I'm currently looking at nested arrays in PHP and I understand how they work to an extent, what I can't see is how PHP knows an array is nested. In most languages this kind of functionality is indicated by some sort of enclosure or similar but in PHP this isn't the case. It just seems to be assumed that an empty array will contain any further arrays below it. I'm asking mainly as I'm trying to understand how you would manage a large number of nested arrays, say for a database. Do they have to be in a single code block?
Devin Scheu
66,191 PointsDevin Scheu
66,191 PointsYes they do :).