src/Behat/Gherkin/Node/TableNode.php
public function getColumn($index)
    {
        if ($index >= count($this->getRow(0))) {
            throw new NodeException(sprintf('Column #%d does not exist in table.', $index));
        }

        $rows = $this->getRows();
        $column = array();

        foreach ($rows as $row) {
            $column[] = $row[$index];
        }

        return $column;
    }
public function getColumn($index)
    {
        if ($index >= count($this->getRow(0))) {
            throw new NodeException(sprintf('Column #%d does not exist in table.', $index));
        }

        $rows = $this->getRows();
        $column = array();

        foreach ($rows as $row) {
            $column[] = $row[$index];
        }

        return $column;
    }
public function getColumn ( $ index ) { if ( $ index >= count ( $ this -> getRow ( 0 ) ) ) { throw new NodeException ( sprintf ( 'Column #%d does not exist in table.' , $ index ) ) ; } $ rows = $ this -> getRows ( ) ; $ column = array ( ) ; foreach ( $ rows as $ row ) { $ column [ ] = $ row [ $ index ] ; } return $ column ; }
Returns specific column in a table.

@param integer $index Column number

@return array

@throws NodeException If column with specified index does not exist
Returns specific column in a table .