Home › Forums › Why smarty template is best for web development › How to concatenate two values in smarty
This topic contains 2 replies, has 1 voice, and was last updated by ajay 3 years, 4 months ago.
I have two values which i want to concatenate to show the output. How to concatenate the values in smarty template.
To concatenate two values in smarty use cat modifier
for example- if you want to concatenate firstname and secondname then concatenate the name like this
If you want to keep space between words while concatenating the value in smarty you can do like this
You must be logged in to reply to this topic.
Comments are closed.