Skip to content

cat

This value is concatenated to the given variable.

Basic usage

{$myVar|cat:' units'}

Parameters

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

Examples

<?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.