ellipsize($str, $max_length[, $position = 1[, $ellipsis = '…']])
Parameters:
$str (string) – Input string
$max_length (int) – String length limit
$position (mixed) – Position to split at (int or float)
$ellipsis (string) – What to use as the ellipsis character Returns:
Ellipsized string Return type:
string
This function will strip tags from a string, split it at a defined maximum length, and insert an ellipsis.
The first parameter is the string to ellipsize, the second is the num