コード例 #1
0
ファイル: String.php プロジェクト: Viacomino/sutra
 /**
  * Wraps the string to the specified width.
  *
  * @param integer $width The width to wrap too.
  * @param string  $break The break to insert.
  * @param boolean $cut   If true we will cut the words to match the width.
  *
  * @return String The string with all lowercase characters to uppercase.
  */
 public function wordWrap($width = 75, $break = "\n", $cut = false)
 {
     return new static(static::$helper->wordwrap($this->string, $width, $break, $cut));
 }