I\'m trying to split strings in half, and it should not split in the middle of a word.
So far I came up with the following which is 99% working :
$te
Just change the line:
$half = (int)ceil(count($words = (count(explode(" ",$text))) / 2);
str_word_count() may not count : or / as word.
str_word_count()