PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/smarty/plugins/modifier.urlencode.php

http://interra.googlecode.com/
PHP | 25 lines | 6 code | 3 blank | 16 comment | 0 complexity | 8f1d06b2b149345b344aabc420861fd0 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: upper<br>
  12. * Purpose: convert string to uppercase
  13. * @link http://smarty.php.net/manual/en/language.modifier.upper.php
  14. * upper (Smarty online manual)
  15. * @param string
  16. * @return string
  17. */
  18. function smarty_modifier_urlencode($string)
  19. {
  20. return urlencode($string);
  21. }
  22. ?>