I have a document file containing HTML markup. I want to assign the contents of the entire file to a PHP variable.
I have this line of code:
$body = in
You have two optional choices
[Option 1]
'email_template.php'
inside the file add a variable like so
$body = 'email content here';
in another file require_once 'email_template.php'
require_once 'email_template.php'
echo $body;
[Option 2]
$body = require_once 'email_template.php';