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 Resposta
+ 2
Can you share what you've tried?