function phutil_console_wrap($text, $indent, $with_prefix)Arcanist Technical Documentation ()
function phutil_console_wrap($text, $indent, $with_prefix)
Arcanist Technical Documentation ()
Soft wrap text for display on a console, respecting UTF8 character boundaries and ANSI color escape sequences.
Parameters
string | $text | Text to wrap. |
int | $indent | Optional indent level. |
bool | $with_prefix | True to also indent the first line. |
Return
string | Wrapped text. |
- Defined
- src/console/format.php:102