header("Content-Type: application/vnd.ms-excel");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("content-disposition: attachment;filename=test.xls");
$text = "<table>";
$text .= "<tr><td>Contact</td></tr>";
$text .= "</table>";
echo $text;
Ce code marche très bien mais il ne crée qu'un seul onglet dans la feuille excel et j'aimerai en créer plusieurs. Savez-vous comment faire?Merci