My output is working perfect with one exception: some of the people do not have a phone number, and I do not want to include that header (Phone) if there is no phone number available. I have this resolved for the output. I tried wrapping a foreach around Phone, but of course that repeated the for each person record group.

```
<table>
<tr>
 <th>Name</th>
 <th>Email</th>
 <th>Phone</th> <!-- This <th> should not display if all phone numbers are empty. -->
</tr>
<?php foreach ($persons as $person) : ?>
<tr>
 <td><?php $person['name']; ?></td>
 <td><?php $person['email']; ?></td>
<?php if($person['phone'] != '') { ?> // removes column box if there is no phone number.
 <td><?php $person['phone']; ?></td>
<?php } ?>

```