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

upper

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

Example 5.22. upper


<?php
$smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While.");
?>

   

テンプレート


{$articleTitle}
{$articleTitle|upper}

   

出力


If Strike isn't Settled Quickly it may Last a While.
IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE.

   

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

Comments
No comments for this page.

Advertisement