modifier.cat.php 604 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Smarty plugin
  4. * @package Smarty
  5. * @subpackage PluginsModifier
  6. */
  7. /**
  8. * Smarty cat modifier plugin
  9. *
  10. * Type: modifier<br>
  11. * Name: cat<br>
  12. * Date: Feb 24, 2003
  13. * Purpose: catenate a value to a variable
  14. * Input: string to catenate
  15. * Example: {$var|cat:"foo"}
  16. * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat
  17. * (Smarty online manual)
  18. * @author Monte Ohrt <monte at ohrt dot com>
  19. * @version 1.0
  20. * @param string
  21. * @param string
  22. * @return string
  23. */
  24. function smarty_modifier_cat($string, $cat)
  25. {
  26. return $string . $cat;
  27. }
  28. ?>