I have the following code:
echo "Hi " . $firstName . ", <br /><br /> text <br /> <br />";
$i = 0;
foreach ($urls as $key) {
print_r ('<a href="' . ($key) . '">');
print_r($names[$i] . "</a>");
echo "<br /> <br />";
$i++;
}
echo "text, <br /><br /> text";
This prints out a message with a list of links generated by the foreach loop. I'd like to store the result in a variable (which I use as the body of an email).