Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StatementInterface.php

function StatementInterface::fetchAll

Returns an array containing all of the result set rows.

Parameters

$mode: One of the \PDO::FETCH_* constants.

$column_index: If $mode is \PDO::FETCH_COLUMN, the index of the column to fetch.

$constructor_arguments: If $mode is \PDO::FETCH_CLASS, the arguments to pass to the constructor.

Return value

array An array of results.

2 methods override StatementInterface::fetchAll()
StatementPrefetchIterator::fetchAll in core/lib/Drupal/Core/Database/StatementPrefetchIterator.php
Returns an array containing all of the result set rows.
StatementWrapperIterator::fetchAll in core/lib/Drupal/Core/Database/StatementWrapperIterator.php
Returns an array containing all of the result set rows.

File

core/lib/Drupal/Core/Database/StatementInterface.php, line 156

Class

StatementInterface
Represents a prepared statement.

Namespace

Drupal\Core\Database

Code

public function fetchAll($mode = NULL, $column_index = NULL, $constructor_arguments = NULL);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal