예제 #1
0
파일: Stringy.php 프로젝트: voku/stringy
 /**
  * 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);
 }