/smarty/plugins/modifier.truncate.php

Description

Smarty plugin

Functions
smarty_modifier_truncate (line 25)

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.

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

Documentation generated on Thu, 04 Sep 2008 16:15:20 +0400 by phpDocumentor 1.3.0RC3