function phutil_console_wrap($text, $indent, $with_prefix)libphutil Technical Documentation (Console)
function phutil_console_wrap($text, $indent, $with_prefix)
libphutil Technical Documentation (Console)
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