aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/docs/designers/language-modifiers/language-modifier-cat.md
blob: 97dda4b37e4034702c1e2d5955cf16c427e2c9c0 (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
32
33
34
35
36
# cat

This value is concatenated to the given variable.

## Basic usage
```smarty
{$myVar|cat:' units'}
```

## Parameters

| Parameter | Type   | Required | Description                                      |
|-----------|--------|----------|--------------------------------------------------|
| 1         | string | No       | This value to concatenate to the given variable. |

## Examples

```php
<?php

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

```

Where template is:

```smarty
    {$articleTitle|cat:' yesterday.'}
```

Will output:

```
    Psychics predict world didn't end yesterday.
```