PageRenderTime 62ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/upload/libraries/smarty/plugins/modifier.number_format.php

https://github.com/sahilbabu/phpb2b
PHP | 24 lines | 6 code | 2 blank | 16 comment | 0 complexity | d635d3ab5d5b8852289fab387ebdb5eb MD5 | raw file
Possible License(s): LGPL-2.1
  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)
  18. {
  19. return number_format($string, $places);
  20. }
  21. /* vim: set expandtab: */
  22. ?>