function phutil_utf8_hard_wrap($string, $width)libphutil Technical Documentation (Core Utilities)
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 | $string | A non HTML string |
int | $width | Width of the hard-wrapped lines |
Return
list | List of hard-wrapped lines. |
- Defined
- src/utils/utf8.php:631