Db::getAsFieldArray PHP Méthode

getAsFieldArray() public méthode

获取以传入的参数的数据结果集合
public getAsFieldArray ( $field = '*', $nouse = '' ) : array
Résultat array
    public function getAsFieldArray($field = '*', $nouse = '')
    {
        if (!$this->queryID) {
            throw_exception($this->error());
            return false;
        }
        //返回数据集
        $result = array();
        if ($this->numRows > 0) {
            while ($row = mysql_fetch_assoc($this->queryID)) {
                $result[] = $field == '*' ? $row : @$row[$field];
            }
            mysql_data_seek($this->queryID, 0);
        }
        return $result;
    }