PHP-Fusion Development

trimlink()

Prevent strings from growing to long and breaking the layout.

Versions: 9

trimlink( string $text, int $length ) : string

Parameters

$text (string) (Required) String to trim.

$length (int) (Required) Max length of the string.

Return Values

(string) String trimmed to the given length.

Examples

$text = 'The big brown fox jumped over the lazy dog';
echo trimlink($text, 10);
// The big...