note 17124 deleted from function.array-unique by jimw
| From: | jimw@php.net | Date: | Mon, 17 Dec 2001 22:20:54 +0000 |
| Subject: | note 17124 deleted from function.array-unique by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23006@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.