Shortens a string and adds an ellipsis if the string is too long
static public short ( string $string, integer $chars, string $rep = '…' ) : string | ||
$string | string | The string to be shortened |
$chars | integer | The final number of characters the string should have |
$rep | string | The element, which should be added if the string is too long. Ellipsis is the default. |
리턴 | string | The shortened string |