|The stupid question is the question not asked|
Re: Answer: How do I find the index of the last element in an array?by jens (Pilgrim)
|on Oct 14, 2002 at 04:30 UTC||Need Help??|
Hmm....actually, that doesn't really help at all!
If you want to know the index of the last element of an array, do this:
This will, of course, output "3".
You can also refer to the value of the last element of the array
using negative indices, e.g. $letterList[-1] will also refer to "d".
Microsoft delendum est.