Question : create array of zeros php
Answered by : green-team
<?php //Will Fill from 0 to 10 with number 0
$a = array_fill(0, 10, 0);
print_r($a);
?>
Source : https://www.php.net/manual/en/function.array-fill.php | Last Update : Thu, 24 Feb 22
Answered by : green-team
<?php //Will Fill from 0 to 10 with number 0
$a = array_fill(0, 10, 0);
print_r($a);
?>
Source : https://www.php.net/manual/en/function.array-fill.php | Last Update : Thu, 24 Feb 22