Truncate
extends AbstractHelper
in package
Table of Contents
Methods
- __invoke() : string
Methods
__invoke()
public
__invoke(string $text[, int $length = 100 ][, array<string|int, mixed> $options = [] ]) : string
Parameters
- $text : string
-
string to truncate
- $length : int = 100
-
length at which to truncate
- $options : array<string|int, mixed> = []
-
options
Tags
Return values
string —truncated string