note 17124 added to function.array-unique
| From: | Keizi at mail dot co dot kr | Date: | Tue, 27 Nov 2001 09:20:29 +0000 |
| Subject: | note 17124 added to function.array-unique | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21318@lists.php.net to get a copy of this message | ||
array_unique() can remove element which is not duplicated.
if you explode() some paragraph with newline and do array_unique(),
about 20 letter of each element to be compared for duplication judge, I think.
so,
a[0] = "THE SAME LETTERS BEFORE and something"
a[1] = "THE SAME LETTERS BEFORE and anything"
array_unique( a ) returns a with only [0] element.
--
http://www.php.net/manual/en/function.array-unique.php
http://master.php.net/manage/user-notes.php?action=edit+17124
http://master.php.net/manage/user-notes.php?action=delete+17124
http://master.php.net/manage/user-notes.php?action=reject+17124