<?php $yourArr = [1,2,1,2,3,4,5]; $res = array_count_values($yourArr); $res = array_filter($res, function($item){ return $item == 1; }); print_r(array_keys($res));
You have javascript disabled. You will not be able to edit any code.