Procedural File: modifier.truncate.php

Source Location: /smarty/libs/plugins/modifier.truncate.php



Classes:

Page Details:

Smarty plugin





smarty_modifier_truncate

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

[line 27]

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 or inserting $etc into the middle.

Tags:

Parameters

  • string $string -
  • integer $length -
  • string $etc -
  • boolean $break_words -
  • boolean $middle -

[ Top ]


Documentation generated on Tue, 26 May 2009 14:50:36 -0700 by phpDocumentor 1.4.1