/framework/vendor/smarty3/lib/libs/plugins/modifier.upper.php
PHP | 30 lines | 10 code | 2 blank | 18 comment | 2 complexity | c2061cbd720a7609d8ed178aa09efa50 MD5 | raw file
1<?php 2/** 3* Smarty plugin 4* 5* @package Smarty 6* @subpackage PluginsModifier 7*/ 8 9/** 10* Smarty upper modifier plugin 11* 12* Type: modifier<br> 13* Name: upper<br> 14* Purpose: convert string to uppercase 15* 16* @link http://smarty.php.net/manual/en/language.modifier.upper.php upper (Smarty online manual) 17* @author Monte Ohrt <monte at ohrt dot com> 18* @param string $ 19* @return string 20*/ 21function smarty_modifier_upper($string) 22{ 23 if (function_exists('mb_strtoupper')) { 24 return mb_strtoupper($string); 25 } else { 26 return strtoupper($string); 27 } 28} 29 30?>