I am collecting data from a sheet using PHP. I am losing information because if there is any empty cell, Google removes the whole row.
$array
refers to some data collected from Google Sheets:
$range = "Sheet1!A1:C99";
$response = $service->spreadsheets_values->get($spreadsheetId, $range);
$array = $response->getValues();
But some cells in the sheet are empty, and if any of those are in the left or right border of the row, Google will remove all the data in that row. [2] => [3]
.
There is a question similar to this one, however, it is not a PHP example and I cannot apply it here.