include/Smarty/plugins/modifier.truncate.php

Show: inherited
    Table of Contents

    Smarty plugin

    Package
    Smarty  
    Subpackage
    plugins  

    Functions

    functionsmarty_modifier_truncate(  $string,  $length = 80,  $etc = '...',  $break_words = false,  $middle = false ) : string

    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.

    Parameters
    Name Type Description
    $string

    string

    $length

    integer

    $etc

    string

    $break_words

    boolean

    $middle

    boolean

    Returns
    Type Description
    string
    Details
    Author
    Monte Ohrt  
    Link
    (Smarty online manual)  
    Documentation was generated by DocBlox 0.18.1.