hey guys, i want to find duo array 2 D with same value at least 2
value between $data1 and $data2, and when duo array 2 D founded save in array 3D
then duo array 2 D with same value founded delete
from $data1 and $data2 purpose quick search duo array with same value, how
to use while loop to solve this case?
$data1 = array(
array(
'7'=>'chelsea everton villa liverpool',
'8'=>'everton villa liverpool manutd',
'9'=>'villa liverpool manutd arsenal',
'10'=>'liverpool manutd arsenal newcastle'
),
array(
'23'=>'milan inter juventus napoli',
'24'=>'inter juventus napoli roma',
'25'=>'juventus napoli roma udinese',
),
array(
'53'=>'madrid barcelona altetico getafe',
'54'=>'barcelona altetico getafe betis',
'55'=>'altetico getafe betis valencia',
)
);
data2 = array(
array(
'3'=>'milan inter juventus napoli',
'4'=>'inter juventus napoli roma',
'5'=>'juventus napoli roma lazio',
),
array(
'23'=>'PSG barcelona altetico getafe',
'24'=>'barcelona monaco getafe betis',
'25'=>'monaco getafe betis valencia',
),
array(
'37'=>'swansea watford villa liverpool',
'38'=>'watford villa liverpool manutd',
'39'=>'villa liverpool manutd arsenal',
'40'=>'liverpool manutd arsenal newcastle'
),
array(
'37'=>'santos flamengo saopaulo riverplate',
'38'=>'flamengo saopaulo riverplate penarol',
)
);
yield>>>
Array
(
[0] = >Array
(
[0] => Array
(
[7] => 'chelsea everton villa liverpool',
[8] => 'everton villa liverpool manutd',
[9] =>'villa liverpool manutd arsenal',
[10]=>'liverpool manutd arsenal newcastle'
)
[1] => Array
(
[37]=>'swansea watford villa liverpool',
[38]=>'watford villa liverpool manutd',
[39]=>'villa liverpool manutd arsenal',
[40]=>'liverpool manutd arsenal newcastle'
)
[1] = >Array
(
[0] => Array
(
[23]=>'milan inter juventus napoli',
[24]=>'inter juventus napoli roma',
[25]=>'juventus napoli roma udinese',
)
[1] => Array
(
[3]=>'milan inter juventus napoli',
[4]=>'inter juventus napoli roma',
[5]=>'juventus napoli roma lazio',
)
)