Show What You Know


#1

I might be missing something, but in this lesson it brings up how the last element in an array is

count($array) - 1.

Where in this lesson does it talk about that? What happened to the "starting with zero" concept?


#2

That's exactly the reason the last index is the length (count) minus 1.

If count($array) is 7, that last index is 6.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.