I can discover the number of elements in an array, so should I use a for statement to loop through an array?
You should be cautious of this technique. If you are not absolutely sure that the array you are reading is indexed by consecutively numbered keys, you might get unexpected results.
Leave a Reply
You must be logged in to post a comment.