/template_engines_bench/libs/smarty-light/src/plugins/modifier.number_format.php
PHP | 12 lines | 5 code | 0 blank | 7 comment | 0 complexity | b61c248e81d4e43129a0572f6fb9d592 MD5 | raw file
Possible License(s): AGPL-1.0, LGPL-2.1
- <?php
- /**
- * Smarty-Light number_format modifier plugin
- *
- * Type: modifier
- * Name: number_format
- * Purpose: Wrapper for the PHP 'number_format' function
- */
- function tpl_modifier_number_format($string, $decimals = 0, $decimal_point = '.', $thousands_sep = ',') {
- return number_format($string, $decimals, $decimal_point, $thousands_sep);
- }
- ?>