cat
| Parameter Position | Type | Required | cat | Description |
|---|
| 1 | string | No | empty | This value to catenate to the given variable. |
This value is concatenated to the given variable.
Example 5-4. cat
<?php $smarty = new Smarty; $smarty->assign('articleTitle', "Psychics predict world didn't end"); $smarty->display('index.tpl'); ?>
|
Where index.tpl is:
{$articleTitle|cat:" yesterday."} |
This will output:
Psychics predict world didn't end yesterday. |
|