mysqli_result類

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 $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_column(int $column = 0): null|int|float|string|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
}

目錄

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *