Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Please help! Replace

 
Post new topic   Reply to topic    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: 1079

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:   
Post new topic   Reply to topic    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