We need a PHP script that will extract all opportunities and customers from NetSuite using their SuiteTalk SOAP interface.
For each opportunity, we also need the associated info found in the Items, System Notes, Quotes and Closed tabs.
For each customer, we also need the associated information found in the General, Info and Sales tabs.
This data should be output as CSV. Also the code should be clean enough that we can understand it and modify it to pull other data from other tabs.