ドキュメント: http://www.smarty.net/docsv2/en/language.modifier.replace.tpl
単一の値を置き換える代わりに、複数の値を変更したいと思います。ドキュメントでは、str_replace は php の str_replace と同じであると書かれています。次に、次の賢い方法をどのように実行しますか?
$letters = array('a', 'p');
$fruit = array('apple', 'pear');
$text = 'a p';
$output = str_replace($letters, $fruit, $text);