explode( " " , "" , $testo);

spezza in un array il $testo con tutte le parole.