fork(4) download
  1. <?php
  2. $info['name'] = 'test %value%';
  3. $info['city'] = 'city test %value%';
  4. $info['other'] = '%value% city test';
  5. foreach ($info as $key => $value)
  6. $info[$key] = str_replace('%value%', 'MyValue', $value);
  7. print_r($info);
  8. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
Array
(
    [name] => test MyValue
    [city] => city test MyValue
    [other] => MyValue city test
)