Automatically exported from code.google.com/p/planningalerts
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

modifier.cat.php 623 B

18 년 전
123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Smarty plugin
  4. * @package Smarty
  5. * @subpackage plugins
  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. /* vim: set expandtab: */
  29. ?>