Noobster24 Posted June 29, 2007 Share Posted June 29, 2007 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. Link to comment Share on other sites More sharing options...
Valuater Posted June 29, 2007 Share Posted June 29, 2007 depending how the array was built... $array[0] for sure you can use Ubound($Array) 8) Link to comment Share on other sites More sharing options...
Toady Posted June 29, 2007 Share Posted June 29, 2007 Your not talking about Ubound() are you? www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Noobster24 Posted June 29, 2007 Author Share Posted June 29, 2007 Ah thank you both, exactly what I was looking for! Programs so far:Teh Serializer - Search for licenses for Nero - Windows - Office - Alcohol etc. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now