Page MenuHomePhorge

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$textText to wrap.
int$indentOptional indent level.
bool$with_prefixTrue to also indent the first line.
Return
stringWrapped text.