I have two arrays:
$ine = [];
array_push($ine, '50');
array_push($ine, '60');
array_push($ine, '70');
array_push($ine, '80');
array_push($ine, '90');
$result = [];
$result = array_push($result[0]['ine_1'], '10');
$result = array_push($result[0]['ine_2'], '30');
$result = array_push($result[1]['ine_1'], '15');
$result = array_push($result[1]['ine_2'], '40');
$result = array_push($result[2]['ine_1'], '50');
$result = array_push($result[3]['ine_2'], '90');
$result = array_push($result[2]['ine_1'], '70');
$result = array_push($result[3]['ine_2'], '80');
I need to compare the array $ine with the column $result['ine_1'] and the result be like
$result_ok:
0 => string '50'
1 => string '70'
I try this:
$result_ok = array_intersect($ine, $result['ine_1');
But not works