Get Smarty

Donate

Paypal

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Advertisement

lower

変数を小文字に置き換えます。これは、PHP の strtolower() 関数と同義です。

Example 5.13. lower


<?php

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

?>

   

テンプレート


{$articleTitle}
{$articleTitle|lower}

   

出力


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

   

upper および capitalize も参照してください。

Comments
No comments for this page.

Advertisement