I am using a PHP Google sheets client:
https://github.com/asimlqt/php-google-spreadsheet-client
This client implements v3 of the API:
https://developers.google.com/google-apps/spreadsheets/data
I usually get rows like this:
// simplified code:
$worksheet = $worksheetFeed->getByTitle($worksheet_id);
$listFeed = $worksheet->getListFeed();
foreach ($listFeed->getEntries() as $entry)
{
$rows []= $entry->getValues();
}
Google turns "Admin Title" into the array key "admintitle". I would like to get a map of the Google array keys to the original Titles. For example, I want an array with entries like:
[admintitle] => "Admin Title"
etc.
How do I do that?