+ 3
What is the uses of length property in array
4 ответов
+ 14
It is often used as a stop condition in loops if you want to loop over an array, e.g.:
for (int i = 0; i < array.length; i++) { }
+ 10
@Geoffrey Caught in the act 😂
+ 1
@Tashi Go to work! :D
+ 1
Length is the same as if you said "count"... in Php it is "count"... it will give you an integer of how many elements inside your array.