12-02-2007, 04:02 PM
|
#2 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
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 count 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.
|
|
|