08-18-2008, 09:09 PM
|
#3 (permalink)
|
|
The Gregarious
Join Date: Mar 2008
Location: Cana'derr
Posts: 653
Thanks: 24
|
Duplicate words?
PHP Code:
$arr= file('file.txt'); array_unique($arr);
Then write it back to the file, or put er where ever suits you (in a database, in your pocket, in your cars cup holder, or in your wifes bra for safekeeping).
-m
edit: Btw this method is assuming each word is on its own line. You may have to get a little more complex if they're all on the same line or delimited in a different way.
|
|
|
|