I have an array that looks just like that:
array(3) { [\"fk_article_id\"]=> string(1) \"4\" [\"first_name\"]=> string(6) \"Ulrike\" [\"last_name\"]=>
I would use a foreach-loop to iterate over the arrays and save all arrays that dont have a duplicate _id to a new array.
$clean = array(); foreach ($arrays as $array) { if (!isset($clean[$array['fk_article_id']]) $clean[$array['fk_article_id']] = $array; }