risolto con

$word = explode(" ", $tex);

grazie