Ciao,
tieni anche presente che essendo tutti gli array in PHP di tipo associativo (anche quelli a chiave numerica) conoscere il limite superiore o inferiore non è molto utile.
con count() determini il numero di elementi contenuti, con foreach scorri l'array
Questa cosa è importante
Note: The unset() function allows unsetting keys of an array. Be aware that the array will NOT be reindexed. If you only use "usual integer indices" (starting from zero, increasing by one), you can achieve the reindex effect by using array_values().
http://www.php.net/manual/en/language.types.array.php