public function lastInsertId($table = null, $column = null)
    {
        $row = null;
        if ($column && $this->columnCount()) {
            $row = $this->fetch(static::FETCH_TYPE_ASSOC);
        }
        if (isset($row[$column])) {
            return $row[$column];
        }

        return $this->_driver->lastInsertId($table, $column);
    }
public function lastInsertId($table = null, $column = null)
    {
        $row = null;
        if ($column && $this->columnCount()) {
            $row = $this->fetch(static::FETCH_TYPE_ASSOC);
        }
        if (isset($row[$column])) {
            return $row[$column];
        }

        return $this->_driver->lastInsertId($table, $column);
    }
public function lastInsertId ( $ table = null , $ column = null ) { $ row = null ; if ( $ column && $ this -> columnCount ( ) ) { $ row = $ this -> fetch ( static :: FETCH_TYPE_ASSOC ) ; } if ( isset ( $ row [ $ column ] ) ) { return $ row [ $ column ] ; } return $ this -> _driver -> lastInsertId ( $ table , $ column ) ; }
Returns the latest primary inserted using this statement.

@param string|null $table table name or sequence to get last insert value from
@param string|null $column the name of the column representing the primary key
@return string|int
Returns the latest primary inserted using this statement .