<?php $a = [ ["ref" => "bee898d8739aa8b2212", "place" => "Berlin"], ["ref" => "ygz121byr46dl4795eu", "place" => "Paris"], ["ref" => "cer123bur45dl4795ef", "place" => "New-York"], ["ref" => "abc123abc12ab1234ab", "place" => "London"] ]; $b = [ ["ref" => "ygz121byr46dl4795eu", "place" => "Paris"], ["ref" => "cer123bur45dl4795ef", "place" => "New-York"] ]; var_export( array_udiff($a, $b, fn($rowA, $rowB) => $rowA['ref'] <=> $rowB['ref']) );
You have javascript disabled. You will not be able to edit any code.