Código PHP:
<table width="200" border="1" align="center">
<tr>
<th scope="col">Posicion</th>
<th scope="col">Cantidad</th>
</tr>
<tr>
<?php foreach($_POST['cantidad'] as $cantidad) { ?>
<td> <?php echo "".$cantidad."" ;$matcant[]=$cantidad; ?></td>
</tr>
<?php } ?>
<tr>
<?php foreach($_POST['posicion'] as $posicion) { ?>
<td><?php echo "".$posicion."" ;$matposicion[]=$posicion;?></td>
</tr>
<?php } ?>
</table>
muchas gracias