smarty template engine
Friday, May 16, 2008  
download | documentation | faq | forum | mailing lists | changelog | contribs 


search for in the  


lower

This is used to lowercase a variable. This is equivalent to the PHP strtolower() function.

Example 5-13. lower

<?php

$smarty
->assign('articleTitle''Two Convicts Evade Noose, Jury Hung.');

?>

Where template is:

{$articleTitle}
{$articleTitle|lower}

This will output:

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

See also upper and capitalize.




 

credits 

Smarty Copyright © 2002-2008 New Digital Group, Inc.
All rights reserved.
Last updated: Tue Feb 12 09:11:23 2008 CST