PHP Classes

File: htdocs/xoops_lib/vendor/smarty/smarty/docs/designers/language-modifiers/language-modifier-upper.md

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/xoops_lib/vendor/smarty/smarty/docs/designers/language-modifiers/language-modifier-upper.md   Download  
File: htdocs/xoops_lib/vendor/smarty/smarty/docs/designers/language-modifiers/language-modifier-upper.md
Role: Example script
Content type: text/markdown
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 2 months ago
Size: 583 bytes
 

Contents

Class file image Download

upper

This is used to uppercase a variable. This is equivalent to the PHP strtoupper() function.

Basic usage

{$myVar|upper}

Examples

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

Where template is:

{$articleTitle}
{$articleTitle|upper}

Will output:

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

See also lower and capitalize.