|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
qgoodlike Smarty n00b
Joined: 17 Aug 2017 Posts: 3
|
Posted: Thu Aug 17, 2017 1:07 pm Post subject: Please help! Replace |
|
|
How to make multiple values "replace", for example:
{$variable|replace:'TEXT':'REPLACEDTEXT'}
TEXT to REPLACEDTEXT, font to replacedfont, and so on...
|
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Aug 17, 2017 7:09 pm Post subject: |
|
|
Поскольку модификатор использует http://php.net/str_replace , вы можете использовать массивы для замены нескольких строк.
На будущее большая просьба не создавать множество одинаковых топиков в разных разделах форума. |
|
Back to top |
|
|
|
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
|