Pop\Db\Adapter\Pdo::numFields PHP 메소드

numFields() 공개 메소드

Return the number of fields in the result.
public numFields ( ) : integer
리턴 integer
    public function numFields()
    {
        if (!isset($this->result)) {
            throw new Exception('Error: The database result resource is not currently set.');
        }
        return $this->result->columnCount();
    }