<?php
$end = count($data);
$id = array_column($data, 'id');
$option = array_column($data, 'option');
$start = array_column($data, 'start');
?>
<table class="table">
<thead>
<tr>
<th scope="col">Header ID</th>
<th scope="col">Header</th>
<th scope="col">Header Option</th>
<th scope="col">Header</th>
<th scope="col">Header</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
<?php for ($i = 0; $i < $end; ++$i){ ?>
<tr>
<?php echo "<td>".$id[$i]."</td>";?>
<?php echo "<td>".$status[$i]."</td>";?>
<?php echo "<td>".$option[$i]."</td>";?>
<?php echo "<td>".$start[$i]."</td>";?>
<?php echo "<td><a href=" . "edit_data.php?id=$id[$i]" . "><ion-icon name='create-outline'></ion-icon>
</span></a></td>";?>
</tr>
<?php } ?>
</tbody>
</table>