Is there a php way to replicate a value multiple time in array, better than cycle?
one text
Solution:
Fill an array with values
$var = 1;
$arr = array_fill(0, 3, $var);
The above code will create an array with $var
from index 0 to the 3'th index