Prova così

Codice PHP:
<?php
   $filename
="sheet.xls";
   
header ("Content-Type: application/vnd.ms-excel");
   
header ("Content-Disposition: inline; filename=\"$filename\" ");

echo 
"<table border=\"1\">";
for (
$i=1;$i 11$i++)
{
   echo 
"<tr>";
   for (
$j=1$j<11;$j++)
   {
      
$a $i $j;
      echo 
"<td>$a</td>";
   }
   echo 
"</tr>";
}
echo 
"</table>";
?>