PHP Class PhpSchool\CliMenu\Util\StringUtil

Author: Michael Woodward ([email protected])
Exibir arquivo Open project: php-school/cli-menu Class Usage Examples

Public Methods

Method Description
stripAnsiEscapeSequence ( string $str ) : string
wordwrap ( string $str, integer $width, string $break = " " ) : string Minimal multi-byte wordwrap implementation which also takes break length into consideration

Method Details

stripAnsiEscapeSequence() public static method

public static stripAnsiEscapeSequence ( string $str ) : string
$str string
return string

wordwrap() public static method

Minimal multi-byte wordwrap implementation which also takes break length into consideration
public static wordwrap ( string $str, integer $width, string $break = " " ) : string
$str string
$width integer
$break string
return string