在每个数组的末尾添加52 0

is there a better way of doing this ? i need 52 0's at the end of each array I already tryd to make a array and implode it but then it behaves like a string.

for($i = 1; $i <= 52; $i++)
    {       
        array_push($totaal["week".$i], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

    }
$zeros_array = array();
for($i = 1; $i <= 52; $i++)           
   array_push($zeros_array, 0);

for($i = 1; $i <= 52; $i++)       
   $totaal["week".$i] = array_merge($totaal["week".$i], $zeros_array);

Try putting the zeroes into their own array and then merge it with each in turn. This should be more efficient.

$zeroes = array_fill(0, 52, 0);
for($i = 1; $i <= 52; $i++)
{       
    $totaal["week".$i] = array_merge($totaal["week".$i], $zeroes);
}