Hi I don't really use arrays a great deal and perhaps I should I have an array and I need to get the contents of it echoed into an e-mail can anyone help Thanks
$body = implode("\n", $array); PHP: If that's not good.... what does your array look like? If you have significant array keys, perhaps this would be better. $body = ''; foreach ($array AS $key => $value) { $body .= "{$key}: {$value}\n"; } PHP:
I have used the second option but is saying the following warning: Invalid argument supplied for foreach() in /home/kobekatt/public_html/smoothhomeloans/qualifier.php on line 418
an easy way to get the contents of an array mailed to you: mail('you@domain.tld', 'subject', print_r($array, 1), 'From: '); print_r($array, 1) will return the contents of the array instead of printing/echoing it like print_r($array) does. -the mole