I\'ve a array of associative array
array(xxx) { [0]=> array(3) { [\"group_id\"]=>2 [\"contact\"]=> \"foo\" [\"contact_email\"]=> \"fo
Extract to an array and index by contact_email. Since there cannot be duplicate indexes you'll get the last occurrence:
contact_email
$array = array_column($array, null, 'contact_email');
If you want to re-index that back to integers:
$array = array_values(array_column($array, null, 'contact_email'));