Thanks. One address per line. I found a function on web (http://www.planet-source-code.com/URLSEO/vb/scripts/ShowCode!asp/txtCodeId!1184/lngWid!8/anyname.htm) it works with a little modification. But still like to see if there is a simple way. Here is the code:
$address = file("list.txt");
$address1 = array_unique($address);
function LIST_CONTENTS($arrayname,$tab=" ",$indent=0) {
while(list($key, $value) = each($arrayname))
{
for($i=0; $i<$indent; $i++) $currenttab .= $tab;
if (is_array($value))
{
$retval .= "$currenttab$key : Array: <BR>$currenttab{<BR>";
$retval .= LIST_CONTENTS($value,$tab,$indent+1)."$currenttab}<BR>";
}
else $retval .= "$value<br>";
$currenttab = NULL;
}
return $retval;
}
echo LIST_CONTENTS($address1,$tab="", $indent=0);