The mysqli_result class

(PHP 5, PHP 7, PHP 8)

Giriş

Represents the result set obtained from a query against the database.

Sınıf Sözdizimi

class mysqli_result implements IteratorAggregate {
/* Özellikler */
public readonly int $current_field;
public readonly int $field_count;
public readonly ?array $lengths;
public readonly int|string $num_rows;
public int $type;
/* Yöntemler */
public function __construct(mysqli $mysql, int $result_mode = MYSQLI_STORE_RESULT)
public function data_seek(int $offset): bool
public function fetch_all(int $mode = MYSQLI_NUM): array
public function fetch_array(int $mode = MYSQLI_BOTH): array|null|false
public function fetch_assoc(): array|null|false
public function fetch_column(int $column = 0): null|int|float|string|false
public function fetch_field(): object|false
public function fetch_field_direct(int $index): object|false
public function fetch_fields(): array
public function fetch_object(string $class = "stdClass", array $constructor_args = []): object|null|false
public function fetch_row(): array|null|false
public function field_seek(int $index): true
public function free(): void
public function close(): void
public function free_result(): void
public function getIterator(): Iterator
}

Özellikler

type

Stores whether the result is buffered or unbuffered as an int (MYSQLI_STORE_RESULT or MYSQLI_USE_RESULT, respectively).

Sürüm Bilgisi

Sürüm: Açıklama
8.0.0 mysqli_result implements IteratorAggregate now. Previously, Traversable was implemented instead.

İçindekiler