aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/docs/designers/language-modifiers/language-modifier-cat.md
blob: 1f43ae177f356eee48741a9fdbb92471554deb77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cat {#language.modifier.cat}
===

This value is concatenated to the given variable.

   Parameter Position    Type    Required   Default  Description
  -------------------- -------- ---------- --------- -----------------------------------------------
           1            string      No      *empty*  This value to catenate to the given variable.


    <?php

    $smarty->assign('articleTitle', "Psychics predict world didn't end");

    ?>

       

Where template is:


    {$articleTitle|cat:' yesterday.'}

       

Will output:


    Psychics predict world didn't end yesterday.