Sign in to follow this  
Followers 0
Noobster24

Count number of keys in array

4 posts in this topic

Hi,

I searched the forum for the code how to count the number of keys in an array. In PHP you got count($array).

I don't want to use a For/While-loop with a $i += 1 or is that the only possibility? I don't want to use the $i += 1, because it takes to long for about 5 arrays to count.

So any ideas?


Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.

Share this post


Link to post
Share on other sites



depending how the array was built... $array[0]

for sure you can use Ubound($Array)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Ah thank you both, exactly what I was looking for!


Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0