Update array_unique() documentation wrt 7853832234

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342752 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nikita Popov 2017-08-01 15:30:27 +00:00
parent d2df296582
commit b210b056cd

View file

@ -18,11 +18,9 @@
without duplicate values.
</para>
<para>
Note that keys are preserved. <function>array_unique</function> 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
<parameter>array</parameter> will be kept.
Note that keys are preserved. If multiple elements compare equal under
the given <parameter>sort_flags</parameter>, then the key and value of
the first equal element will be retained.
</para>
<note>
<simpara>