I'd like to print just the value from an array into the body of a email using PHPmailer.
I can get just the value from an array using this code, whereas $row[0] is the specific array I want
foreach ($row[0] as $key => $val) {
echo $val;
}
But, I can not include this in the PHPmailer body. I need to use either text within "" or a single variable. From what I've tried, at least, because it seems like everything else is rejected...
I'm probably missing something, perhaps there's an easy solution. Thank you, the help is appreciated!
question from:
https://stackoverflow.com/questions/65897371/printing-just-the-value-of-an-array-in-email-body-with-phpmailer 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…