PHP Manual

PEAR Manual

Smarty Manual

PostgreSQL

MySQL Manual

Perl Manual

chapter 6. combining modifiers

you can apply any number of modifiers to a variable. they will be applied in the order they are combined, from left to right. they must be separated with a | (pipe) character.

example 6-1. combining modifiers

<?php

$smarty
->assign('articletitle''smokers are productive, but death cuts efficiency.');

?>

where template is:

{$articletitle} {$articletitle|upper|spacify} {$articletitle|lower|spacify|truncate} {$articletitle|lower|truncate:30|spacify} {$articletitle|lower|spacify|truncate:30:". . ."}

the above example will output:

smokers are productive, but death cuts efficiency. s m o k e r s   a r ....snip....  h   c u t s   e f f i c i e n c y . s m o k e r s   a r ....snip....  b u t   d e a t h   c u t s... s m o k e r s   a r e   p r o d u c t i v e ,   b u t . . . s m o k e r s   a r e   p. . .