3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $goods=["ABC","XYZ","PQR","DEF"]; $qty=[12345,25120,14521,12541]; $rate=[12.00,13.02,15.00,14.00]; ?> <table> <tr> <th>Sr No.</th> <th>Goods Description</th> <th>Total Quantity(pcs)</th> <th>Rate per unit(Rs.)</th> <th colspan="3">Amount</th> </tr> <?php for($i=0;$i<count($goods);$i++) { ?> <tr> <td><?php echo $goods[$i];?></td> <td><?php echo $qty[$i];?></td> <td><?php echo $rate[$i];?></td> </tr> <?php } ?> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Value</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Frieght</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Taxable Value</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>tax</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Total Tax Amount</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>Grand Total Tax Amount</td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>ABC</td> <td></td> <td></td> </tr> </table>