diff --git a/reference/array/functions/array-unique.xml b/reference/array/functions/array-unique.xml index ab0155e457..67a57c4b56 100644 --- a/reference/array/functions/array-unique.xml +++ b/reference/array/functions/array-unique.xml @@ -18,11 +18,9 @@ without duplicate values. - Note that keys are preserved. array_unique sorts - the values treated as string at first, then will keep the first key - encountered for every value, and ignore all following keys. It does not - mean that the key of the first related value from the unsorted - array will be kept. + Note that keys are preserved. If multiple elements compare equal under + the given sort_flags, then the key and value of + the first equal element will be retained.