Note: I\'m sorry if this is an extremely simple question but I\'m somewhat obsessive compulsive over the formatting of my code.
I have a class that has a function th
I use templates for long text:
email-template.txt contains
hello {name}! how are you?
In PHP I do this:
$email = file_get_contents('email-template.txt'); $email = str_replace('{name},', 'Simon', $email);