phpDocumentor Smarty
plugins
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

Source for file modifier.capitalize.php

Documentation is available at modifier.capitalize.php

  1. <?php
  2. /**
  3.  * Smarty plugin
  4.  * @package Smarty
  5.  * @subpackage plugins
  6.  */
  7.  
  8.  
  9. /**
  10.  * Smarty capitalize modifier plugin
  11.  *
  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 
  19.  */
  20. function smarty_modifier_capitalize($string)
  21. {
  22.     return ucwords($string);
  23. }
  24.  
  25. ?>

Documentation generated on Tue, 24 Oct 2006 09:24:00 -0500 by phpDocumentor 1.3.1