PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/template_engines_bench/libs/smarty-light/src/plugins/modifier.urlencode.php

https://github.com/limb-php-framework/limb-tools
PHP | 12 lines | 5 code | 0 blank | 7 comment | 0 complexity | b98976ea7fd5d65b65a472d1feda356f MD5 | raw file
Possible License(s): AGPL-1.0, LGPL-2.1
  1. <?php
  2. /**
  3. * Smarty-Light url encode modifier plugin
  4. *
  5. * Type: modifier
  6. * Name: urlencode
  7. * Purpose: Wrapper for the PHP 'urlencode' function
  8. */
  9. function tpl_modifier_urlencode($string) {
  10. return urlencode($string);
  11. }
  12. ?>