<?php
/*
 * Smarty plugin
 *
-------------------------------------------------------------
 * File:     modifier.number_format.php
 * Type:     modifier
 * Name:     number_format
 * Version:  1.0
 * Date:     2003-03-24
 * Purpose:  pass value to PHP number_format() and return result
 * Install:  Drop into the plugin directory.
 * Usage:     {$somenumber|number_format:2:",":"."}
 * Author:   Joscha Feth
 *
-------------------------------------------------------------
 */
function smarty_modifier_number_format($number$decimals ''$dec_point ''$thousands_sep '')
{
    return 
number_format ($number$decimals$dec_point$thousands_sep);
}
?>