I have three arrays as follows:
$names = array ("Josh", "Dami");
$details = array ("Douglas", "Port Erin");
$images = array ("1", "2");
I then have the following foreach loop to put each other the values into it's own text field
<?php foreach($names as $a_name) { ?>
<tr>
<td><input type="text" size="10" name="names[]" value="<?php echo $a_name ?>" ></td>
<td><input type="text" size="10" name="details[]" value="<?php echo $a_detail ?>" ></td>
<td><input type="text" size="10" name="images[]" value="<?php echo $a_image ?>" ></td>
<td><?php echo $add_row_icon; echo (' '); echo $remove_row_icon;?></td>
</tr> <?php
}?>
Obviously that only runs through the names array and puts those into the correct fields. How would I go about nesting two more foreach loops so that the names, details and images were shown?