$v) { $out = str_replace('{{' . $k . '}}', (string) $v, $out); } return $out; } }