readColumn() public méthode

Returns a single column from the next row of a result set.
public readColumn ( integer $columnIndex ) : mixed
$columnIndex integer zero-based column index
Résultat mixed the column of the current row, false if no more rows available
 /**
  * Returns a single column from the next row of a result set.
  * @param integer $columnIndex zero-based column index
  * @return mixed the column of the current row, false if no more rows available
  */
 public function readColumn($columnIndex)
 {
     //Try..Catch to prevent Function sequence error: -11067
     try {
         return parent::readColumn($columnIndex);
     } catch (\Exception $ex) {
     }
     return false;
 }
 /**
  * Returns a single column from the next row of a result set.
  * @param integer $columnIndex zero-based column index
  * @return mixed the column of the current row, false if no more rows available
  */
 public function readColumn($columnIndex)
 {
     //Try..Catch to prevent CLI0125E  Function sequence error. SQLSTATE=HY010
     try {
         return parent::readColumn($columnIndex);
     } catch (\Exception $ex) {
     }
     return false;
 }