Page MenuHomeCode

modifiercompiler.cat.php
No OneTemporary

modifiercompiler.cat.php

<?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, $compiler)
{
return '('.implode(').(', $params).')';
}
?>

File Metadata

Mime Type
text/x-php
Expires
Sat, Aug 2, 03:41 (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25957
Default Alt Text
modifiercompiler.cat.php (665 B)

Event Timeline