Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • No you don't need unique variables to store the result of str_replace()s results. What does $html_content look like and the values in the $en array? Commented Sep 12, 2013 at 19:02
  • $html_content is an html file $html_content = file_get_contents('/emails/welcome.tpl'); $en['confcode']` and $en['memb_id'] are numbers. I did a echo and the values are present. Commented Sep 12, 2013 at 19:04
  • So what exactly do the second calls return if you echo them to the screen? Commented Sep 12, 2013 at 19:05