Google\Spreadsheet\CellFeed::getCell PHP Method

getCell() public method

public getCell ( integer $row, integer $col ) : CellEntry | null
$row integer
$col integer
return CellEntry | null
    public function getCell($row, $col)
    {
        if (count($this->entries) === 0) {
            $this->getEntries();
        }
        $id = sprintf("R%sC%s", $row, $col);
        if (isset($this->entries[$id])) {
            return $this->entries[$id];
        }
        return null;
    }

Usage Example

 public function testGetCell()
 {
     $feed = new CellFeed($this->getSimpleXMLElement("cell-feed"));
     $this->assertTrue($feed->getCell(1, 1) instanceof CellEntry);
     $this->assertNull($feed->getCell(5, 3));
 }
All Usage Examples Of Google\Spreadsheet\CellFeed::getCell