Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
3 lars 1
<?php
2
    /*
3
    * Smarty plugin
4
    *
5
    -------------------------------------------------------------
6
    * File:     modifier.number_format.php
7
    * Type:     modifier
8
    * Name:     number_format
9
    * Version:  1.0
10
    * Date:     May 1st, 2002
11
    * Purpose:  pass value to PHP number_format() and return result
12
    * Install:  Drop into the plugin directory.
13
    * Author:   Jason E. Sweat <jsweat_php@yahoo.com>
14
    *
15
    -------------------------------------------------------------
16
    */
17
    function smarty_modifier_number_format( $string, $places = 2, $dpoint = ',',
18
        $thousand = '.' )
19
    {
20
        return number_format( $string, $places, $dpoint, $thousand );
21
    }
22
 
23
    /* vim: set expandtab: */ ?>