Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Please help! Replace

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian
View previous topic :: View next topic  
Author Message
qgoodlike
Smarty n00b


Joined: 17 Aug 2017
Posts: 3

PostPosted: Thu Aug 17, 2017 1:07 pm    Post subject: Please help! Replace Reply with quote

How to make multiple values "replace", for example:
{$variable|replace:'TEXT':'REPLACEDTEXT'}
TEXT to REPLACEDTEXT, font to replacedfont, and so on...

Idea Question Question
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Aug 17, 2017 7:09 pm    Post subject: Reply with quote

Поскольку модификатор использует http://php.net/str_replace , вы можете использовать массивы для замены нескольких строк.

На будущее большая просьба не создавать множество одинаковых топиков в разных разделах форума.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP