assing value in blank array in loop php code example
Example: php initialize array
// Initialize Empty Array (PHP 5.4 and higher)
$myArray = [];
// Initialize Empty Array (Before PHP 5.4)
$myArray = array();
// Initialize Empty Array (PHP 5.4 and higher)
$myArray = [];
// Initialize Empty Array (Before PHP 5.4)
$myArray = array();