/upload/libraries/smarty/plugins/modifier.number_format.php
PHP | 24 lines | 6 code | 2 blank | 16 comment | 0 complexity | d635d3ab5d5b8852289fab387ebdb5eb MD5 | raw file
Possible License(s): LGPL-2.1
- <?php
- /*
- * Smarty plugin
- *
- -------------------------------------------------------------
- * File: modifier.number_format.php
- * Type: modifier
- * Name: number_format
- * Version: 1.0
- * Date: May 1st, 2002
- * Purpose: pass value to PHP number_format() and return result
- * Install: Drop into the plugin directory.
- * Author: Jason E. Sweat <jsweat_php@yahoo.com>
- *
- -------------------------------------------------------------
- */
- function smarty_modifier_number_format($string, $places)
- {
- return number_format($string, $places);
- }
- /* vim: set expandtab: */
- ?>