src/Shop/InvoiceManager.php
protected function getCol(array $dbResults, $key)
    {
        $results = array();
        foreach ($dbResults as $dbResult) {
            $results[] = (int) $dbResult[$key];
        }
        return $results;
    }
protected function getCol(array $dbResults, $key)
    {
        $results = array();
        foreach ($dbResults as $dbResult) {
            $results[] = (int) $dbResult[$key];
        }
        return $results;
    }
protected function getCol ( array $ dbResults , $ key ) { $ results = array ( ) ; foreach ( $ dbResults as $ dbResult ) { $ results [ ] = ( int ) $ dbResult [ $ key ] ; } return $ results ; }
Helper method to retrieve the values from 1 column of a query result.

@param array $dbResults
@param string $key

@return int[]
Helper method to retrieve the values from 1 column of a query result .