i have strind of 2000+ words. I need to get not more then 200 symbols BUT last word needs to be full word not part of word. So i need 200 or less then 200 symbols depends on last word lengs. Hope i make sence.
i need some like
$text = "lots lots text,lots lots textlots lots textlots lots textlots lots text";
$cuttext = get 7 symbols if 7 in midle of word take less($text);
print $cuttext // "lots" BUT NOT "lots lo"