The modifier for the Smarty.Stick characters to variables.

Today is about cat. You can stick any character or variable after a variable. cat, concatenating values to variables Here's an example of how cat can be used. In addition to strings in a variable, you can also attach a variable to it. You can stick to it using cat in the assign. Try to […]

Today is about cat.
You can stick any character or variable after a variable.

cat, concatenating values to variables

Here's an example of how cat can be used.
In addition to strings in a variable, you can also attach a variable to it.
You can stick to it using cat in the assign.
Try to be careful how to write.
Cat behind the cat is also possible.

{$titleName|cat:'roll'}
{$objectId|cat:$exchangeNum}
{assign var="itemNames" value=$prizeNames|cat:"{$object.name}"}
{assign var=comment value='player level'|cat:{$presentLevelLimit}|cat:'from above'}

This is useful when you need to display a combination of variables.


Leave a Reply 0

Your email address will not be published.