$values = array_map('array_pop', $array); $imploded = implode(',', $values);
$users = [ 'user1' => 'user1@example.com', 'user2' => 'user2@example.com' ]; echo implode(', ',$users); // "user1@example.com, user2@example.com"