PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

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.

Example 31. cat



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

   

Smarty Template Engine