function PdoTrait::clientFetchColumn
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Database/Statement/PdoTrait.php \Drupal\Core\Database\Statement\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.
File
-
core/
lib/ Drupal/ Core/ Database/ Statement/ PdoTrait.php, line 169
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.