Function truncate_utf8
Truncate a UTF-8-encoded string safely to a number of characters.
Parameters summary
mixed |
$string |
The string to truncate. |
mixed |
$len |
An upper limit on the returned string length. |
mixed |
$wordsafe = FALSE |
Flag to truncate at last space within the upper limit. Defaults to FALSE. |
mixed |
$dots = FALSE |
Flag to add trailing dots. Defaults to FALSE. |
Return value summary
The
|
truncated string. |