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 */
intcurrent_field ;
intfield_count;
arraylengths;
intnum_rows;
/* Methods */
public data_seek ( int $offset ) : bool
public fetch_all ([ int $resulttype = MYSQLI_NUM ] ) : mixed
public fetch_array ([ int $resulttype = MYSQLI_BOTH ] ) : mixed
public fetch_assoc ( void ) : array
public fetch_field_direct ( int $fieldnr ) : object
public fetch_field ( void ) : object
public fetch_fields ( void ) : array
public fetch_object ([ string $class_name = "stdClass" [, array $params ]] ) : object
public fetch_row ( void ) : mixed
public field_seek ( int $fieldnr ) : bool
public free ( void ) : void
public close ( void ) : void
public free_result ( void ) : void
}

Table of Contents