The close() function is an inbuilt function in PHP | Spreadsheet_Excel_Writer which is used to finalize the spreadsheet after which all the operations are done. This method should always be the last one to be called on every workbook.
Parameters: This function does not accept any parameter.
Return Value: This function returns TRUE on success and PEAR_ERROR on failure.
This article is attributed to GeeksforGeeks.org