Helper class for working with strings.

package Default

 Methods

Returns the maximum member length of an array of objects.

getMaxLength(array $array, callable $key) : integer
Static

Parameters

$array

array

$key

callable

Returns

integer

Truncates a multi-line string.

truncate(string $text, integer $chars = 60) : string
Static

Appends an ellipsis (see https://stackoverflow.com/q/9219795).

Parameters

$text

string

$chars

integer

Returns

string