I need a php script to Eliminate Duplicate Lines. It can be from a txt file or from textbox. I tried to do it but i couldn't do . If you know a program that can do it it will be better
$text = array_unique(split("\n", $text)); foreach( $text as $data ){ if($data) : $new .= $data . "\n"; endif; } PHP: set text from the said data, that'll work, $text will contain old and $new will contain new