/lib/jelix/plugins/tpl/common/modifier.number_format.php
PHP | 25 lines | 4 code | 1 blank | 20 comment | 0 complexity | fd0b1e0015e99076eff62c75baf79583 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
- <?php
- /**
- * jTpl plugin that wraps PHP number_format function
- * @package jelix
- * @subpackage jtpl_plugin
- * @author Julien Issler
- * @contributor
- * @copyright 2008 Julien Issler
- * @link http://www.jelix.org
- * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
- * @since 1.1
- */
- /**
- * NumberFormat plugin for jTpl that wraps PHP number_format function
- *
- * @param float $number the number to format
- * @param int $decimals the number of decimals to return
- * @param string $dec_point the separator string for the decimals
- * @param string $thousands_sep the separator string for the thousands
- * @return string
- */
- function jtpl_modifier_common_number_format($number, $decimals=0, $dec_point='.', $thousands_sep=','){
- return number_format($number, $decimals, $dec_point, $thousands_sep);
- }