Method: str::cutout
Shortens a string by cutting out chars in the middle
This method mimicks the shortening which is used for filenames in the Finder
Info
Syntax
str::cutout($str, $length, $rep='…')
Parameters
- $string (string) The string to be shortened
- $length (int) 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.
Return (string)
The shortened string