php foreach fields as key field body key field

1
2
3
4
5
<?php
foreach ($fields as $key => $field) {
$body .= $key.': '.$field.'\r\n';
}
?>