function StatementWrapper::fetchField
Same name in other branches
- 9 core/lib/Drupal/Core/Database/StatementWrapper.php \Drupal\Core\Database\StatementWrapper::fetchField()
Overrides StatementInterface::fetchField
File
-
core/
lib/ Drupal/ Core/ Database/ StatementWrapper.php, line 180
Class
- StatementWrapper
- Implementation of StatementInterface encapsulating PDOStatement.
Namespace
Drupal\Core\DatabaseCode
public function fetchField($index = 0) {
// Call \PDOStatement::fetchColumn to fetch the field.
return $this->clientStatement
->fetchColumn($index);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.