src/ORM/ArrayList.php
public function column($colName = 'ID')
    {
        $result = [];

        foreach ($this->items as $item) {
            $result[] = $this->extractValue($item, $colName);
        }

        return $result;
    }
public function column($colName = 'ID')
    {
        $result = [];

        foreach ($this->items as $item) {
            $result[] = $this->extractValue($item, $colName);
        }

        return $result;
    }
public function column ( $ colName = 'ID' ) { $ result = [ ] ; foreach ( $ this -> items as $ item ) { $ result [ ] = $ this -> extractValue ( $ item , $ colName ) ; } return $ result ; }
Returns an array of a single field value for all items in the list.

@param string $colName
@return array
Returns an array of a single field value for all items in the list .