<?php
$info['name'] = 'test %value%';
$info['city'] = 'city test %value%';
$info['other'] = '%value% city test';
foreach ($info as $key => $value)
$info[$key] = str_replace('%value%', 'MyValue', $value); ?>
PD9waHAKJGluZm9bJ25hbWUnXSA9ICd0ZXN0ICV2YWx1ZSUnOwokaW5mb1snY2l0eSddID0gJ2NpdHkgdGVzdCAldmFsdWUlJzsKJGluZm9bJ290aGVyJ10gPSAnJXZhbHVlJSBjaXR5IHRlc3QnOwpmb3JlYWNoICgkaW5mbyBhcyAka2V5ID0+ICR2YWx1ZSkKICAkaW5mb1ska2V5XSA9IHN0cl9yZXBsYWNlKCcldmFsdWUlJywgJ015VmFsdWUnLCAkdmFsdWUpOwpwcmludF9yKCRpbmZvKTsKPz4=