lower

lower

This is used to lowercase a variable.

Example 5-12. 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.

© Copyright 2003-2014 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.