/solar27/include/thirdparty/smarty/plugins/modifier.number_format.php

https://bitbucket.org/sebs/mosolar · PHP · 26 lines · 6 code · 3 blank · 17 comment · 0 complexity · 93654b5ad7f59c1a5dd7b84bf8fd7c8f MD5 · raw file

  1. <?php
  2. /**
  3. * Smarty plugin
  4. * @package Smarty
  5. * @subpackage plugins
  6. */
  7. /**
  8. * Smarty upper modifier plugin
  9. *
  10. * Type: modifier<br>
  11. * Name: number_format<br>
  12. * Purpose: convert string to uppercase
  13. * @link http://smarty.php.net/manual/en/language.modifier.number_format.php
  14. * number_format (Smarty online manual)
  15. * @author Yanick Bourbeau <ybourbeau at mrgtech dot ca>
  16. * @param string
  17. * @return string
  18. */
  19. function smarty_modifier_number_format($string)
  20. {
  21. return number_format($string);
  22. }
  23. ?>