mysqli_result类

(PHP 5, PHP 7)

简介

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

更新日志

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

类摘要

mysqli_result {
/* 属性 */
array $lengths;
int $num_rows;
/* 方法 */
mysqli_field_tell ( mysqli_result $result ) : int
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
mysqli_num_fields ( mysqli_result $result ) : int
field_seek ( int $fieldnr ) : bool
free ( void ) : void
mysqli_fetch_lengths ( mysqli_result $result ) : array
mysqli_num_rows ( mysqli_result $result ) : int
}

Table of Contents

关注编程学问公众号