Si SPL est disponible, vous pouvez utiliser la fonction count() en .... If you want to run through large arrays don't use count() function in the loops , its a over head ...
www.php.net