DatabaseStatementInterface::fetchField

  1. drupal
    1. 8
    2. 7
Versions
7 public DatabaseStatementInterface::fetchField($index = 0)

Returns a single field from the next record of a result set.

Parameters

$index The numeric index of the field to return. Defaults to the first field.

Return value

A single field from the next record, or FALSE if there is no next record.

Code

includes/database/database.inc, line 2002

<?php
public function fetchField($index = 0);
?>