Fetch array question
View Single Post
12-02-2007, 04:02 PM
La Vida es Sueño
Join Date: Sep 2007
It will be 2 because it is counting - and thus it needs to return a value that can be understood by humans. Although array indexes begin with a 0, if you were to call the
then it would return 2.
I can't think of any intellectual way to put this, maybe someone else can put it better than me. But array indexes start at 0, counting starts at 1.
If it were to return 0 for 1 item, what would no items return?
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
View Public Profile
Send a private message to Wildhoney
Visit Wildhoney's homepage!
Find More Posts by Wildhoney