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

Return (string)

The shortened string