<?php $string = 'foo {{bar}} foo {{bar}} foo'; $bar = ['lol', 'kek']; vprintf(str_replace('{{bar}}', '%s', $string), $bar);
You have javascript disabled. You will not be able to edit any code.