/include/plugins/modifier.number_format.php
PHP | 48 lines | 6 code | 5 blank | 37 comment | 0 complexity | 78571907ebfbeeb925215dcef651a2e8 MD5 | raw file
- <?php
-
- /**
-
- * Smarty plugin
-
- * @package Smarty
-
- * @subpackage plugins
-
- */
-
- /**
-
- * Smarty number_format modifier plugin
-
- *
-
- * Type: modifier<br>
-
- * Name: number_format<br>
-
- * Purpose: format number via number_format
-
- * @link http://smarty.php.net/manual/en/language.modifier.number.format.php
-
- * number_format (Smarty online manual)
-
- * @param string
-
- * @param integer
-
- * @param character
-
- * @param character
-
- * @return string
-
- */
-
- function smarty_modifier_number_format($number, $decimals="2", $decpoint=".", $thousandsep=",")
- {
- return number_format($number, $decimals, $decpoint, $thousandsep);
- }
-
- /* vim: set expandtab: */
-
- ?>