game/onyx2/modules/templates/smarty/plugins/modifier.upper.php

31 lines
580 B
PHP
Raw Normal View History

2009-11-01 11:00:00 +00:00
<?php
/**
2020-11-15 15:12:32 +00:00
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifier
*/
2009-11-01 11:00:00 +00:00
/**
2020-11-15 15:12:32 +00:00
* Smarty upper modifier plugin
*
* Type: modifier<br>
* Name: upper<br>
* Purpose: convert string to uppercase
*
* @link http://smarty.php.net/manual/en/language.modifier.upper.php upper (Smarty online manual)
* @author Monte Ohrt <monte at ohrt dot com>
* @param string $
* @return string
*/
2009-11-01 11:00:00 +00:00
function smarty_modifier_upper($string)
{
2020-11-15 15:12:32 +00:00
if (function_exists('mb_strtoupper')) {
return mb_strtoupper($string);
} else {
return strtoupper($string);
}
}
2009-11-01 11:00:00 +00:00
?>