public function getColumnOfResults($col)
    {
        $new = array();
        foreach ((array)$this->results as $result) {
            if ($result instanceof Object)
                $new[] = $result->$col;
            else if (is_array($result))
                $new[] = $result[$col];
        }
        return $new;
    }
public function getColumnOfResults($col)
    {
        $new = array();
        foreach ((array)$this->results as $result) {
            if ($result instanceof Object)
                $new[] = $result->$col;
            else if (is_array($result))
                $new[] = $result[$col];
        }
        return $new;
    }
public function getColumnOfResults ( $ col ) { $ new = array ( ) ; foreach ( ( array ) $ this -> results as $ result ) { if ( $ result instanceof Object ) $ new [ ] = $ result -> $ col ; else if ( is_array ( $ result ) ) $ new [ ] = $ result [ $ col ] ; } return $ new ; }
Returns an array containing the value stored in the column specifed for each result

@param string $col The column name to fetch

@return array
Returns an array containing the value stored in the column specifed for each result