mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-19 23:45:20 +02:00
24 lines
493 B
PHP
24 lines
493 B
PHP
<?php
|
|
|
|
/*
|
|
* Smarty plugin
|
|
* -------------------------------------------------------------
|
|
* Type: modifier
|
|
* Name: cat
|
|
* Version: 1.0
|
|
* Date: Feb 24, 2003
|
|
* Author: Monte Ohrt <monte@ispi.net>
|
|
* Purpose: catentate a value to a variable
|
|
* Input: string to catenate
|
|
* Example: {$var|cat:"foo"}
|
|
* -------------------------------------------------------------
|
|
*/
|
|
function smarty_modifier_cat($string, $cat)
|
|
{
|
|
return $string . $cat;
|
|
}
|
|
|
|
/* vim: set expandtab: */
|
|
|
|
?>
|