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.

File

core/lib/Drupal/Core/Database/Statement/PdoTrait.php, line 152

Class

PdoTrait
A trait for calling \PDOStatement methods.

Namespace

Drupal\Core\Database\Statement

Code

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.