Page MenuHomePhorge
Diviner libphutil Tech Docs phutil_utf8_hard_wrap

function phutil_utf8_hard_wrap($string, $width)
libphutil Technical Documentation (Core Utilities)

Hard-wrap a block of UTF-8 text with no embedded HTML tags and entities.

Parameters
string$stringA non HTML string
int$widthWidth of the hard-wrapped lines
Return
listList of hard-wrapped lines.