<?php
$mensagem = '{{nome}} Lorem Ipsum is simply text of the printing and typesetting industry {{email}}';
$nome = 'Maria';
$email = 'Maria@foo.bar';
$traducao = array("{{nome}}" => $nome, "{{email}}" => $email,
);
echo strtr($mensagem, $traducao);
PD9waHAKCiRtZW5zYWdlbSA9ICd7e25vbWV9fSBMb3JlbSBJcHN1bSBpcyBzaW1wbHkgdGV4dCBvZiB0aGUgcHJpbnRpbmcgYW5kIHR5cGVzZXR0aW5nIGluZHVzdHJ5IHt7ZW1haWx9fSc7CiRub21lICA9ICdNYXJpYSc7CiRlbWFpbCA9ICdNYXJpYUBmb28uYmFyJzsKCiR0cmFkdWNhbyA9IGFycmF5KCJ7e25vbWV9fSIgID0+ICRub21lLCAKICAgICAgICAgICAgICAgICAgInt7ZW1haWx9fSIgPT4gJGVtYWlsLAoJCQkgICAgICk7CgkJCSAgICAgIAplY2hvIHN0cnRyKCRtZW5zYWdlbSwgJHRyYWR1Y2FvKTs=