Exemple #1
0
 /**
  * Shorten the string after $length, but also after the next word.
  *
  * @param int    $length
  * @param string $strAddOn
  *
  * @return Stringy
  */
 public function shortenAfterWord($length, $strAddOn = '...')
 {
     $string = UTF8::str_limit_after_word($this->str, $length, $strAddOn);
     return static::create($string);
 }