prova anche così...
Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="generator" content="PSPad editor, [url]www.pspad.com[/url]">
<title></title>
</head>
<body>
<?php
function is_single($num,$key,$numeri)
{
unset($numeri[$key]);
$match=array_search($num,$numeri);
if ($match !== false) return false;
else return true;
}
$numeri=explode(',',file_get_contents('xxx.txt'));
foreach($numeri as $k=>$v) $numeri[$k]=intval($v);
$n=1;
echo '<table border=1><tr>';
foreach($numeri as $k_n=>$numero)
{
if (is_single($numero,$k_n,$numeri)) echo "<td align=\"center\" style=\"color: green;\">$numero</td>";
else echo "<td align=\"center\" style=\"color: red;\">$numero</td>";
if (is_int($n/10)) echo "</tr><tr>";
$n++;
}
echo "</tr>";
echo '<table>';
?>
</body>
</html>