This question has already been answered:
- Remove duplicates from an array of 6 replies
There is a simple array
$arr = array(2, 5, 5, 3 ,2, 1, 5, 7, 1); How to display only all unique non-duplicate values? Those. the output should be 2, 5, 3, 1, 7
The function array_unique ($ arr) cannot be used.
вывести только все уникальные не повторяющиеся значенияthen the link to the duplicate is higher ↑ - Alexey Shimanskyне повторяющиеся уникальные элементыin your array are 3 and 7 ..... although, perhaps, you had in mind that option and not this ....... The twofold wording came out simply - Alexey Shimansky