$v){ $target = '{{'.$k.'}}'; print "target = '{{'.$k.'}}'" ; $replacement = $v; print "replacement = $v" ; $contentTextOneBlock = $this->replaceData($target, $replacement, $contentTextOneBlock); } $contentText .= $contentTextOneBlock; } $template = $template['header']. $contentText .$template['footer']; return $template; } }