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