scusa andr3a... io a quest'ora il cervello lo spengo.... :quipy:

Cmq l'ho riacceso un attimo e ho applicato la funzione in_array (che mi sfuggiva) per fare quello che volevo (e va):

Codice PHP:
$testo strtolower($testo);
$pattern "[^0-9a-zàèìòù//]";
$testo ereg_replace ($pattern" "$testo);
$testo trim($testo);
$testo explode(" ",$testo);
$total_words array_unique($testo);
sort($total_words);
$nuovoArray = array();
$eliminare = array("egli","essi","altro","degli","delle","dell","della","dello","degli","dall","alla","nella");
foreach(
$total_words as $parola)
{
    if(
strlen($parola) > && !in_array($parola,$eliminare))
    {
        
array_push($nuovoArray,$parola);
    }
}

foreach(
$nuovoArray as $k => $parola)
{
    print 
"$k) ".$parola."
"
;

Questo è quello che serve a me. Mi mancava appunto l'eliminazione dei termini "inutili".

Dankiù :adhone: