0
Push to array
Hello. I need to push data from one array to another, but if first array has two identical values, it shouldnt be added. $arr1 = [ [ ‘date’ => ‘november’, visits: ‘140’], [ ‘date’ => ‘oktober’, visits: ‘120’], [ ‘date’ => ‘november’, visits: ‘96’], ]; The second array should be : $arr2 = [ [ ‘date’ => ‘november’, visits: ‘140’], [ ‘date’ => ‘oktober’, visits: ‘120’], ];
1 ответ
+ 2
Can you share what you've tried?