Doctrine\DBAL\Statement::columnCount PHP Method

columnCount() public method

Returns the number of columns in the result set.
public columnCount ( ) : integer
return integer
    public function columnCount()
    {
        return $this->stmt->columnCount();
    }

Usage Example

 /**
  * @return mixed
  */
 function columnCount()
 {
     return $this->stmt->columnCount();
 }