The mysqli_result class

(PHP 5, PHP 7)

Introduction

Represents the result set obtained from a query against the database.

Changelog

Changelog
Version Description
5.4.0 Iterator support was added, as mysqli_result now implements Traversable.

Class synopsis

mysqli_result implements Traversable {
/* Properties */
array $lengths;
/* Methods */
data_seek ( int $offset ) : bool
fetch_all ([ int $resulttype = MYSQLI_NUM ] ) : mixed
fetch_array ([ int $resulttype = MYSQLI_BOTH ] ) : mixed
fetch_assoc ( void ) : array
fetch_field_direct ( int $fieldnr ) : object
fetch_field ( void ) : object
fetch_fields ( void ) : array
fetch_object ([ string $class_name = "stdClass" [, array $params ]] ) : object
fetch_row ( void ) : mixed
field_seek ( int $fieldnr ) : bool
free ( void ) : void
}

Table of Contents