Jelix 1.6.40

modifier.wordwrap.php

Plugin from smarty project and adapted for jtpl

Tags
subpackage

jtpl_plugin

copyright

2001-2003 ispi of Lincoln, Inc.

link
http://smarty.php.net/
link
http://jelix.org/
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

Table of Contents

jtpl_modifier_common_wordwrap()  : string
modifier plugin : wrap a string of text at a given length. Same parameters as the php wordwrap function <pre>{$mytext|wordwrap} {$mytext|wordwrap:40} {$mytext|wordwrap:45:"\n"} {$mytext|wordwrap:60:"\n":true} </pre>

Functions

jtpl_modifier_common_wordwrap()

modifier plugin : wrap a string of text at a given length. Same parameters as the php wordwrap function <pre>{$mytext|wordwrap} {$mytext|wordwrap:40} {$mytext|wordwrap:45:"\n"} {$mytext|wordwrap:60:"\n":true} </pre>

jtpl_modifier_common_wordwrap(string $string[, int $length = 80 ][, string $break = " " ][, bool $cut = false ]) : string
Parameters
$string : string
$length : int = 80
$break : string = " "
$cut : bool = false
Return values
string

Search results