a new and improved date widget
[openemr.git] / library / plugins / modifier.capitalize.php
blobadf862b3fe8b52a39fb99e8fe8e40947abeaa4d8
1 <?php
2 /**
3 * Smarty plugin
4 * @package Smarty
5 * @subpackage plugins
6 */
9 /**
10 * Smarty capitalize modifier plugin
12 * Type: modifier<br>
13 * Name: capitalize<br>
14 * Purpose: capitalize words in the string
15 * @link http://smarty.php.net/manual/en/language.modifiers.php#LANGUAGE.MODIFIER.CAPITALIZE
16 * capitalize (Smarty online manual)
17 * @param string
18 * @return string
20 function smarty_modifier_capitalize($string)
22 return ucwords($string);