Io farei una cosa del genere:
Codice PHP:
function quanti_indici ($mio_array,$mio_indice) {
$count = 0;
foreach ($mio_array as $key => $valore) {
if ($key==$mio_indice) {$count++;}
}
return $count;
}
Io farei una cosa del genere:
Codice PHP:
function quanti_indici ($mio_array,$mio_indice) {
$count = 0;
foreach ($mio_array as $key => $valore) {
if ($key==$mio_indice) {$count++;}
}
return $count;
}