PDOStatement::fetchAll

PDOStatement::fetchAll

(PHP 5 >= 5.1.0, PHP 7, PECL pdo >= 0.1.0)

PDOStatement::fetchAll Returns an array containing all of the result set rows

Description

public array PDOStatement::fetchAll ([ int $fetch_style [, mixed $fetch_argument [, array $ctor_args = array() ]]] )

Parameters

fetch_style

Controls the contents of the returned array as documented in PDOStatement::fetch(). Defaults