如何在表中添加数组值的超链接?

I'm wanna to add hyperlink on every emails and phone numbers that appear in the table like shown below

enter image description here

This is the code that I'm writing right now.

<tbody>
            <?php
                $grand_total_amount = 0;

                foreach ($processed_sales as $key => $sale):
            ?> 
                <tr class="sale" data-id="<?= $sale['id']; ?>">
                    <td><?= $pagination->offset + $key + 1; ?></td>
                <?php
                    foreach ($columns as $key => $value):
                        if ($checked_columns[$key]):
                ?>
                    <td><?= $sale[$key]; ?>
                    <a href="../Jualan.php?email=<?php echo $value['email']; ?>" class="style1"><?php echo $value['email']; ?></a></td>
                <?php
                        endif;
                    endforeach;
                ?>
                </tr>
            <?php
                    $grand_total_amount = bcadd($grand_total_amount, $sale['total_amount'], 2);
                endforeach;
            ?>
            </tbody>

I only want the data in column email and phone number to have hyperlink that will direct them to other pages.

It's quite unclear what you're doing but what I could figure out is, your <a> tags should be within <td> tags, like this:

<td>
    <a href="../Jualan.php?email=<?php echo $value['email']; ?>" class="style1">
        <?php echo $value['email']; ?>
    </a>
</td>

Otherwise it would messup the table.

Your should be inside your maybe that's why it doesnt works

 echo "<a href=\"./$value['email']/">$value['email'];</a>";