Length of an array in ASP by using UBound functionWe can get the length or total number of element in the array by using UBound() function. Note that the index of the first element of the array is 0. So if there are five elements inside an array then the function UBound() will return 4. Here is the code to get the highest index of the array. Note that total element is 1 plus the highest index.
Here UBound is used to set the maximum looping length to display each element of the array.
In PHP array length or size is found out by using sizeof function
This article is written by plus2net.com team.
Be the first to post comment on this article :