Box\Spout\Reader\XLSX\RowIterator::key PHP Method

key() public method

Return the key of the current element. Here, the row index.
public key ( ) : integer
return integer
    public function key()
    {
        // TODO: This should return $this->nextRowIndexToBeProcessed
        //       but to avoid a breaking change, the return value for
        //       this function has been kept as the number of rows read.
        return $this->shouldPreserveEmptyRows ? $this->nextRowIndexToBeProcessed : $this->numReadRows;
    }