mysqli_result类

(PHP 5, PHP 7)

简介

代表从一个数据库查询中获取的结果集。

更新日志

更新日志
版本 说明
5.4.0 Iterator support was added, as mysqli_result now implements Traversable.

类摘要

mysqli_result {
/* 属性 */
array $lengths;
/* 方法 */
mysqli_field_tell ( mysqli_result $result ) : int
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 ( ) : array
public fetch_field_direct ( int $fieldnr ) : object
public fetch_field ( ) : object
public fetch_fields ( ) : array
public fetch_object ([ string $class_name = "stdClass" [, array $params ]] ) : object
public fetch_row ( ) : mixed
mysqli_num_fields ( mysqli_result $result ) : int
public field_seek ( int $fieldnr ) : bool
public free ( ) : void
mysqli_fetch_lengths ( mysqli_result $result ) : array
mysqli_num_rows ( mysqli_result $result ) : int
}

Table of Contents