<?php $array1 = [ [ 'description' => 'aaaaaa', 'value' => 11111, 'id' => 14, ], [ 'description' => 'dddddd', 'value' => 44444, 'id' => 0, ], ]; $array2 = [ [ 'id' => 14, 'value' => 11111, 'description' => 'aaaaaa', ], [ 'id' => 15, 'value' => 222222, 'description' => 'bbbbbb', ], [ 'id' => 16, 'value' => 333333, 'description' => 'cccccc', ], ]; var_export( array_uintersect($array1, $array2, fn($a, $b) => $a <=> $b) );
You have javascript disabled. You will not be able to edit any code.