for example i have sentenes like this:
$text = \"word, word w.d. word!..\";
I need array like this
Array ( [0] => w
use
str_word_count ( string $string [, int $format = 0 [, string $charlist ]] )
see here http://php.net/manual/en/function.str-word-count.php it does exactly what you want. So in your case :
$myarray = str_word_count ($text,1);