Hi. I want to remove lines with same text. i wrote this code, but it doesnt work. where is the problem ?
$total=$_GET['name'];
$keyarr=explode("\n",$total);
$int=sizeof($keyarr);
for($a=0;$a<$keyarr;$a++){
for($b=$a+1;$b<5\$keyarr;$b++){
if($keyarr[$a]==$keyarr[$b]){
unset($keyarr[$b]);
}
}
}
echo $keyarr[$int-1];
foreach($keyarr as $new){
echo $new."<br>";
}