mysqli_result类

(PHP 5, PHP 7, PHP 8)

简介

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

更新日志

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

类摘要

class mysqli_result {
/* 属性 */
array|false|null $lengths;
int|string $num_rows;
/* 方法 */
mysqli_field_tell(mysqli_result $result): int
public data_seek(int $offset): bool
public fetch_all(int $mode = MYSQLI_NUM): array
public fetch_array(int $mode = MYSQLI_BOTH): array|null|false
public fetch_assoc(): array|null|false
public fetch_field_direct(int $index): object|false
public fetch_field(): object|false
public fetch_fields(): array
public fetch_object(string $class = "stdClass", array $constructor_args = []): object|null|false
public fetch_row(): array|null|false
mysqli_num_fields(mysqli_result $result): int
public field_seek(int $index): bool
public free(): void
mysqli_fetch_lengths(mysqli_result $result): array|false
mysqli_num_rows(mysqli_result $result): int|string
}

目录