Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

File: modifier.truncate.php

Source Location: /PhpDocumentor-1.5.0a1/phpDocumentor/Smarty-2.6.0/libs/plugins/modifier.truncate.php

Classes:

Page Details:

Smarty plugin

smarty_modifier_truncate [line 25]

string smarty_modifier_truncate( string $string, [integer $length = 80], [string $etc = '...'], [boolean $break_words = false])

Smarty truncate modifier plugin

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



Parameters

string   $string  
integer   $length  
string   $etc  
boolean   $break_words  
[ Top ]



Documentation generated on Mon, 11 Mar 2019 15:50:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.