Printing just the value of an array in email body with PHPMailer?

  arrays, loops, php, phpmailer

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!

Source: Ask PHP