I have an Array like this
$array1 = [
0 => [
'category_name' => 'Example 1'
],
1 => [
'category_name' => 'Example 2'
],
2 => [
'category_name' => 'Example 3'
],
];
I want to add more keys in each index of this array and finally I want to get output like this
$array2 = [
0 => [
'import_id' => 10,
'country_id' => 1,
'category_name' => 'Example 1'
],
1 => [
'import_id' => 10,
'country_id' => 1,
'category_name' => 'Example 2'
],
2 => [
'import_id' => 10,
'country_id' => 1,
'category_name' => 'Example 3'
],
];
But I don't want to use any loop to do this. is it possible ??