cat

cat

This value is concatenated to the given variable.

Parameter PositionTypeRequiredcatDescription
1stringNoemptyThis value to catenate to the given variable.

Example 5-3. cat

<?php    

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

?>

Where template is:

{$articleTitle|cat:" yesterday."}

This will output:

Psychics predict world didn't end yesterday.
© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.