Documentation

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
src

http://www.codestance.com/tutorials-archive/zend-framework-truncate-view-helper-246

phpcsSuppress

SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification

Return values
string

truncated string


        
On this page

Search results