Update a 2 dimensional array into Google Sheets (Spreadsheets). You can also get back data in array or csv. The library is build with Google Sheets API v4.
an example of updating a google sheet with an array. more information can be found at ajaxray's blog http://ajaxray.com/blog/store-data-to-google-sheets-using-php ...