lower

Si usa per trasformare una variabile in lettere minuscole.

Example 5.12. lower


<?php
    
$smarty = new Smarty;
$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.');
$smarty->display('index.tpl');
    
?>

   

Dove index.tpl è:

 

{$articleTitle}
{$articleTitle|lower}

   

Questo stamperà:


Two Convicts Evade Noose, Jury Hung.
two convicts evade noose, jury hung.