<?php
$goods=["ABC","XYZ","PQR","DEF"];
$qty=[12345,25120,14521,12541];
$rate=[12.00,13.02,15.00,14.00];
$words=["Total Value", "Frieght", "Total Taxable Value", "Tax", "Tax", "Tax", "Total Tax Amount"];
?>
<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($words);$i++) {
?>
<tr>
<td><?php if(isset($goods[$i])) echo $goods[$i];?></td>
<td><?php if(isset($qty[$i])) echo $qty[$i];?></td>
<td><?php if(isset($rate[$i])) echo $rate[$i];?></td>
<td><?php echo $words[$i];?></td>
</tr>
<?php } ?>
</table>
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
- <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>
<tr>
<td>ABC</td>
<td>12345</td>
<td>12</td>
<td>Total Value</td>
</tr>
<tr>
<td>XYZ</td>
<td>25120</td>
<td>13.02</td>
<td>Frieght</td>
</tr>
<tr>
<td>PQR</td>
<td>14521</td>
<td>15</td>
<td>Total Taxable Value</td>
</tr>
<tr>
<td>DEF</td>
<td>12541</td>
<td>14</td>
<td>Tax</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td>Tax</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td>Tax</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td>Total Tax Amount</td>
</tr>
</table>
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
<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>
<tr>
<td>ABC</td>
<td>12345</td>
<td>12</td>
<td>Total Value</td>
</tr>
<tr>
<td>XYZ</td>
<td>25120</td>
<td>13.02</td>
<td>Frieght</td>
</tr>
<tr>
<td>PQR</td>
<td>14521</td>
<td>15</td>
<td>Total Taxable Value</td>
</tr>
<tr>
<td>DEF</td>
<td>12541</td>
<td>14</td>
<td>Tax</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td>Tax</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td>Tax</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td>Total Tax Amount</td>
</tr>
</table>
preferences:
132.18 ms | 404 KiB | 171 Q