PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

lower

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

Example 41. 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.

Smarty Template Engine