Hey I have this piece of code here:
<?php for($t=1; $t<=4;$t++ ){
<input name="total_hours" type="hidden" value="<?=$totalhoursweek.$t['Duration'];?>">
<?php };?>
How can I dynamically use the variable $t
?
Result expected:
$totalhoursweek1['Duration'];
$totalhoursweek2['Duration'];
$totalhoursweek3['Duration'];
$totalhoursweek4['Duration'];