W3cubDocs

/Drupal 8

function StatementInterface::fetchAll

StatementInterface::fetchAll($mode = NULL, $column_index = NULL, $constructor_arguments = NULL)

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

An array of results.

File

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

Class

StatementInterface
Represents a prepared statement.

Namespace

Drupal\Core\Database

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!StatementInterface.php/function/StatementInterface::fetchAll/8.1.x