function PdoTrait::clientFetchColumn
Returns a single column from the next row of a result set.
Parameters
int $column: 0-indexed number of the column to retrieve from the row. If no value is supplied, the first column is fetched.
Return value
scalar|null|false A single column from the next row of a result set or false if there are no more rows.
1 call to PdoTrait::clientFetchColumn()
- StatementWrapperIterator::fetchField in core/
lib/ Drupal/ Core/ Database/ StatementWrapperIterator.php - Returns a single field from the next record of a result set.
File
-
core/
lib/ Drupal/ Core/ Database/ Statement/ PdoTrait.php, line 152
Class
- PdoTrait
- A trait for calling \PDOStatement methods.
Namespace
Drupal\Core\Database\StatementCode
protected function clientFetchColumn(int $column = 0) : int|float|string|bool|null {
return $this->getClientStatement()
->fetchColumn($column);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.