I wasn't sure how to do this. I want to count the words and make sure the length of the word doesn't go pass a set length.
$textarea = "information from textarea form";
$textarea2 = str_word_count($textarea); //Count words
if (a word in $textarea2 has less than 10 characters) {
do this
}
else {
the word was too long
}