public function pluck($colName)
    {
        $result = array();
        foreach ($this->rows as $row) {
            array_push($result, $row[$colName]);
        }
        return $result;
    }
public function pluck($colName)
    {
        $result = array();
        foreach ($this->rows as $row) {
            array_push($result, $row[$colName]);
        }
        return $result;
    }
public function pluck ( $ colName ) { $ result = array ( ) ; foreach ( $ this -> rows as $ row ) { array_push ( $ result , $ row [ $ colName ] ) ; } return $ result ; }
Return all value of a column in array

@param string $colName Column name

@return array Array containing all values of the column
Return all value of a column in array