<?php $unique_ids = array_count_values(array_column($array,'id')); $res = array_filter($array, fn($v) => $unique_ids[$v['id']] === 1); print_r($res);