require_once "Spreadsheet/Excel/Writer.php";
object reference Workbook::&addWorksheet ([string $name=''])
object reference Workbook::&addWorksheet
Add a new worksheet to the Excel workbook. If no name is given the name of the worksheet will be Sheeti with i in [1..].
string $name - the optional name of the worksheet
object reference - to a worksheet object
This function can not be called statically.
Example 29-1. Using &addWorksheet()
<?php require_once 'Spreadsheet/Excel/Writer.php'; $workbook = new Spreadsheet_Excel_Writer('test.xls'); $worksheet =& $workbook->addWorksheet('My first worksheet'); $workbook->close(); ?>