I have an array that I am echoing to a table but I can't seem work out how to refactor my code efficiently to increment my array values automatically. I'm new to php but am sure that this can be done.
<tr>
<td><?php echo $arrName[0]; ?> </td>
<td><?php echo $arrName[1]; ?> </td>
<td><?php echo $arrName[2]; ?> </td>
<td><?php echo $arrName[3]; ?> </td>
<td><?php echo $arrName[4]; ?> </td>
<td><?php echo $arrName[5]; ?> </td>
<td><?php echo $arrName[6]; ?> </td>
<td><?php echo $arrName[7]; ?> </td>
</tr>
how and where do I create a variable that can store the starting value and then how do I increment that value after each line?