Wordwrap
Less than 1 minute
Wordwrap
Wraps a string to a given number of characters using a string break character.
Methods
run
public run(string $string, int $width = 80, string $break = '"\n"', bool $cut = true): string
Parameters
Parameter | Type | Description |
---|---|---|
$string | string | The input string |
$width | int | The number of characters at which the string will be wrapped |
$break | string | The line is broken using the optional break parameter |
$cut | bool | If the cut is set to TRUE, the string is always wrapped at or before the specified width |
Generated by Hazaar API Doc Generator