It's not a php limitation, all the browser sees is HTML. I assume you are already putting everything in a single HTML table (which Excel will display as a spreadsheet).
Aside from limited HTML table formatting you don't have much control over Excel. If you want to get fancy you have to build an xls file on the server with COM and let the user download it.