php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
mysqli_result Class Reference
Inheritance diagram for mysqli_result:
IteratorAggregate Traversable

Public Member Functions

 __construct (mysqli $mysql, int $result_mode=MYSQLI_STORE_RESULT)
 
 close ()
 
 free ()
 
 data_seek (int $offset)
 
 fetch_field ()
 
 fetch_fields ()
 
 fetch_field_direct (int $index)
 
 fetch_all (int $mode=MYSQLI_NUM)
 
 fetch_array (int $mode=MYSQLI_BOTH)
 
 fetch_assoc ()
 
 fetch_object (string $class="stdClass", array $constructor_args=[])
 
 fetch_row ()
 
 fetch_column (int $column=0)
 
 field_seek (int $index)
 
 free_result ()
 
 getIterator ()
 

Data Fields

int $current_field
 
int $field_count
 
array $lengths
 
int string $num_rows
 
int $type
 

Detailed Description

Definition at line 1019 of file mysqli.stub.php.

Constructor & Destructor Documentation

◆ __construct()

mysqli_result::__construct ( mysqli $mysql,
int $result_mode = MYSQLI_STORE_RESULT )

Definition at line 1047 of file mysqli.stub.php.

Member Function Documentation

◆ close()

mysqli_result::close ( )

@tentative-return-type @alias mysqli_free_result

Definition at line 1053 of file mysqli.stub.php.

◆ data_seek()

mysqli_result::data_seek ( int $offset)

@tentative-return-type @alias mysqli_data_seek

Definition at line 1065 of file mysqli.stub.php.

◆ fetch_all()

mysqli_result::fetch_all ( int $mode = MYSQLI_NUM)
Returns
array<int|string, mixed> @tentative-return-type @alias mysqli_fetch_all

Definition at line 1091 of file mysqli.stub.php.

◆ fetch_array()

mysqli_result::fetch_array ( int $mode = MYSQLI_BOTH)
Returns
array<int|string, mixed>|null|false @tentative-return-type @alias mysqli_fetch_array

Definition at line 1098 of file mysqli.stub.php.

◆ fetch_assoc()

mysqli_result::fetch_assoc ( )
Returns
array<int|string, mixed>|null|false @tentative-return-type @alias mysqli_fetch_assoc

Definition at line 1105 of file mysqli.stub.php.

◆ fetch_column()

mysqli_result::fetch_column ( int $column = 0)

@alias mysqli_fetch_column

Definition at line 1121 of file mysqli.stub.php.

◆ fetch_field()

mysqli_result::fetch_field ( )

@tentative-return-type @alias mysqli_fetch_field

Definition at line 1071 of file mysqli.stub.php.

◆ fetch_field_direct()

mysqli_result::fetch_field_direct ( int $index)

@tentative-return-type @alias mysqli_fetch_field_direct

Definition at line 1084 of file mysqli.stub.php.

◆ fetch_fields()

mysqli_result::fetch_fields ( )
Returns
array<int, object> @tentative-return-type @alias mysqli_fetch_fields

Definition at line 1078 of file mysqli.stub.php.

◆ fetch_object()

mysqli_result::fetch_object ( string $class = "stdClass",
array $constructor_args = [] )

@tentative-return-type @alias mysqli_fetch_object

Definition at line 1111 of file mysqli.stub.php.

◆ fetch_row()

mysqli_result::fetch_row ( )
Returns
array<int, mixed>|null|false @tentative-return-type @alias mysqli_fetch_row

Definition at line 1118 of file mysqli.stub.php.

◆ field_seek()

mysqli_result::field_seek ( int $index)

@tentative-return-type @alias mysqli_field_seek

Definition at line 1127 of file mysqli.stub.php.

◆ free()

mysqli_result::free ( )

@tentative-return-type @alias mysqli_free_result

Definition at line 1059 of file mysqli.stub.php.

◆ free_result()

mysqli_result::free_result ( )

@tentative-return-type @alias mysqli_free_result

Definition at line 1133 of file mysqli.stub.php.

◆ getIterator()

mysqli_result::getIterator ( )

@tentative-return-type

Implements IteratorAggregate.

Definition at line 1135 of file mysqli.stub.php.

Field Documentation

◆ $current_field

int mysqli_result::$current_field

@readonly mysqli-result.current-field

Definition at line 1025 of file mysqli.stub.php.

◆ $field_count

int mysqli_result::$field_count

@readonly mysqli-result.field-count

Definition at line 1031 of file mysqli.stub.php.

◆ $lengths

array mysqli_result::$lengths

@readonly mysqli-result.lengths

Definition at line 1037 of file mysqli.stub.php.

◆ $num_rows

int string mysqli_result::$num_rows

@readonly mysqli-result.num-rows

Definition at line 1043 of file mysqli.stub.php.

◆ $type

int mysqli_result::$type

Definition at line 1045 of file mysqli.stub.php.


The documentation for this class was generated from the following file: