I just want to ask to you, How to make a loop on a string, like this code bellow...
$array = array("a", "B", "c", "D");
$loop = "
foreach($array as $ray):
echo $ray;
endforeach;
";
Note : I am using email function that the body of email should inside of the string, like this
$val = "A";
$to = "bla@bla.com";
$from = "ha@bla.com";
$subject = " bla bla bla";
$body = "
Hahahah
hahaa
$val
";