I have these loop statement to generate arrays labeled with z variable. array will be sent to ajax to be displayed in HTML page.
for($z=0;$z<5;$z++){
$billsum = $bills['amount'];
$bill['$z'] = [$billsum];
}
How can I generate arrays such as $bill0,$bill1,$bill2,$bill3,...etc
'around $z:$bill[$z] = $billsum;(and the [] - or do you really want another nested array in there?)$billsthat contains each bill in$bill[0], $bill[1],... (or maybe you want an array with only billsums, then call it$billsums[1], ..