yii\imagine\Image::$thumbnailBackgroundAlpha = 0;
$ar1 = [
['a' => 1, 'b' => 2],
['a' => 2, 'b' => 11],
['a' => 3, 'b' => 12],
];
$ar2 = [
['a' => 1, 'b' => 2],
['a' => 2, 'b' => 11],
['a' => 3, 'b' => 13],
];
$hashedArray1 = [];
foreach($ar1 as $ar) {
$hashedArray1[json_encode($ar)] = $ar;
}
$hashedArray2 = [];
foreach($ar2 as $ar) {
$hashedArray2[json_encode($ar)] = $ar;
}
var_dump(array_intersect_key($hashedArray1, $hashedArray2));