Let me talk about my understanding of the purpose of the question first. These two arrays should be taken from two different tables. Date and a_id should be the same fields. Merging is also based on these two. If the date and a_id are the same, then To merge the data into an array, the following is the code:
$array1 = array(..); // The first array merged $array2 = array(..); // The second array merged $array = array_merge($array1 , $array2); / / Combine two arrays $new_array = array(); foreach($array as $v){
Let me talk about my understanding of the purpose of the question first. These two arrays should be taken from two different tables. Date and a_id should be the same fields. Merging is also based on these two. If the date and a_id are the same, then To merge the data into an array, the following is the code:
$array1 = array(..); // The first array merged
$array2 = array(..); // The second array merged
$array = array_merge($array1 , $array2); / / Combine two arrays
$new_array = array();
foreach($array as $v){
}
Explanation: The subscript of the processed array new_array is date-a_id, which is used as the only subscript
I don’t know what to press