Documentation

modifier.mb_truncate.php

Table of Contents

Functions

smarty_modifier_mb_truncate()  : string
Smarty mb_truncate modifier plugin

Functions

smarty_modifier_mb_truncate()

Smarty mb_truncate modifier plugin

smarty_modifier_mb_truncate(string $string[, int $length = 80 ][, string $etc = '...' ][, bool $break_words = FALSE ]) : string

Type: modifier
Name: mb_truncate
Purpose: Truncate a string to a certain length if necessary, optionally splitting in the middle of a word, and appending the $etc string. Multibyte version.

Parameters
$string : string
$length : int = 80
$etc : string = '...'
$break_words : bool = FALSE
Tags
link

truncate (Smarty online manual)

Return values
string

        
On this page

Search results