function DatabaseStatementBase::fetchField

Overrides DatabaseStatementInterface::fetchField

File

includes/database/database.inc, line 2330

Class

DatabaseStatementBase
Default implementation of DatabaseStatementInterface.

Code

public function fetchField($index = 0) {
    // Call PDOStatement::fetchColumn to fetch the field.
    return $this->fetchColumn($index);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.