src/Dev/Install/MySQLDatabaseConfigurationHelper.php
protected function column($results)
    {
        $array = array();
        if ($results instanceof mysqli_result) {
            while ($row = $results->fetch_array()) {
                $array[] = $row[0];
            }
        } else {
            foreach ($results as $row) {
                $array[] = $row[0];
            }
        }
        return $array;
    }
protected function column($results)
    {
        $array = array();
        if ($results instanceof mysqli_result) {
            while ($row = $results->fetch_array()) {
                $array[] = $row[0];
            }
        } else {
            foreach ($results as $row) {
                $array[] = $row[0];
            }
        }
        return $array;
    }
protected function column ( $ results ) { $ array = array ( ) ; if ( $ results instanceof mysqli_result ) { while ( $ row = $ results -> fetch_array ( ) ) { $ array [ ] = $ row [ 0 ] ; } } else { foreach ( $ results as $ row ) { $ array [ ] = $ row [ 0 ] ; } } return $ array ; }
Helper function to quickly extract a column from a mysqi_result

@param mixed $results mysqli_result or enumerable list of rows
@return array Resulting data
Helper function to quickly extract a column from a mysqi_result