<?php
$s = "Hello Mr/Mrs {{Name}}. You have subscribed for {{Service}} at {{Date}} {{I_DONT_KNOW_IT}}.";
'Name' => "customerName", //or string
'Service' => "serviceName", //or string
'Date' => '2015-06-06'
);
return isset($arr[$m[1]]) ?
$arr[$m[1]] : $m[0]; }, $s);
PD9waHAKCiRzID0gIkhlbGxvIE1yL01ycyB7e05hbWV9fS4gWW91IGhhdmUgc3Vic2NyaWJlZCBmb3Ige3tTZXJ2aWNlfX0gYXQge3tEYXRlfX0ge3tJX0RPTlRfS05PV19JVH19LiI7CiRhcnIgPSBhcnJheSgKICAgICdOYW1lJyA9PiAiY3VzdG9tZXJOYW1lIiwgLy9vciBzdHJpbmcKICAgICdTZXJ2aWNlJyA9PiAic2VydmljZU5hbWUiLCAvL29yIHN0cmluZwogICAgJ0RhdGUnID0+ICcyMDE1LTA2LTA2JwopOwplY2hvICRyZXMgPSBwcmVnX3JlcGxhY2VfY2FsbGJhY2soJy97eyguKj8pfX0vJywgZnVuY3Rpb24oJG0pIHVzZSAoJGFycikgewoJICAgcmV0dXJuIGlzc2V0KCRhcnJbJG1bMV1dKSA/ICRhcnJbJG1bMV1dIDogJG1bMF07IAoJfSwgJHMpOw==