/packages/Output/Smarty/Core/plugins/modifiercompiler.cat.php
https://bitbucket.org/alexamiryan/stingle · PHP · 29 lines · 5 code · 1 blank · 23 comment · 0 complexity · 4158252d9e94f19c059a6691b9475f8b MD5 · raw file
- <?php
- /**
- * Smarty plugin
- *
- * @package Smarty
- * @subpackage PluginsModifierCompiler
- */
- /**
- * Smarty cat modifier plugin
- * Type: modifier<br>
- * Name: cat<br>
- * Date: Feb 24, 2003<br>
- * Purpose: catenate a value to a variable<br>
- * Input: string to catenate<br>
- * Example: {$var|cat:"foo"}
- *
- * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat
- * (Smarty online manual)
- * @author Uwe Tews
- *
- * @param array $params parameters
- *
- * @return string with compiled code
- */
- function smarty_modifiercompiler_cat($params)
- {
- return '(' . implode(').(', $params) . ')';
- }