<? header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=registro-excel.xls"); //resultado espresado en html con <table> ?>