我正在尝试合并 5 个具有不同键的关联数组。这是对 5 个数组使用数组合并后的结果
array_merge($bucketExlData1, $bucketExlData2, $bucketExlData3, $bucketExlData4, $bucketExlData5)
结果
array:5 [▼
0 => array:1 [▼
"Name" => "John Test"
]
1 => array:1 [▼
"Archived-On" => "2016-05-02 18:20:26"
]
2 => array:8 [▼
"Phone" => "2132918968"
"DOB" => "1800-01-01 00:00:00"
"Referred-By-Practice" => "-"
"Referred-By-Provider" => "-"
"Last-Scheduled-To-Practice" => "-"
"Last-Scheduled-To-Provider" => "-"
"Last-Scheduled-To-Location" => "-"
"Last-Scheduled-Date-of-Service" => "-"
]
3 => array:1 [▼
"Archived-Reason" => "no-need-to-schedule"
]
4 => array:1 [▼
"Notes" => "done"
]
]
我想让这个数组像
array:5 [▼
"Name" => "John Test"
"Archived-On" => "2016-05-02 18:20:26"
"Phone" => "2132918968"
"DOB" => "1800-01-01 00:00:00"
"Referred-By-Practice" => "-"
"Referred-By-Provider" => "-"
"Last-Scheduled-To-Practice" => "-"
"Last-Scheduled-To-Provider" => "-"
"Last-Scheduled-To-Location" => "-"
"Last-Scheduled-Date-of-Service" => "-"
"Archived-Reason" => "no-need-to-schedule"
"Notes" => "done"
]