Search Results
This function serves an identical purpose to the mysqli_fetch_field () function with the single difference that, instead of returning one object at a time for each field, the columns are returned as an array of objects.
- Free
Also this is observed that there is lesser memory usage...
- Lengths
The mysqli_fetch_lengths () function returns an array...
- Construct
This method constructs a new mysqli_result object. It can be...
- Getiterator
Description ¶ public mysqli_result::getIterator (): Iterator...
- Query
MYSQLI_ASYNC (available with mysqlnd) - the query is...
- Free
The PHP mysqli_result::fetch_fields () / mysqli_fetch_fields () function returns an array of objects representing the fields in a result set. This function is similar to mysqli_fetch_field () function, except instead of returning one object at a time for each field, the columns are returned as an array of objects.
- The name of the column
- Original table name if an alias was specified
Definition and Usage The fetch_field () / mysqli_fetch_field () function returns the next field (column) in the result-set, as an object.
The mysqli_fetch_fields () function accepts a result object as a parameter and returns an array of objects each representing a field in the result.
Description Procedural Style: array mysqli_fetch_fields ( mysqli_result result ) Object oriented style (method): class mysqli_result { array fetch_fields ( void ) } This function serves an identical purpose to the mysqli_fetch_field () function with the single difference that, instead of returning one object at a time for each field, the columns are returned as an array of objects.
- The name of the column
- Original table name if an alias was specified
mysqli_fetch_fields () - Returns an array of objects representing the fields in a result set mysqli_field_seek () - Set result pointer to a specified field offset
People also ask
What is mysqli_fetch_field() function?
How do I fetch a result in MySQL?
What is a result object in PHP?
What is a result identifier in PHP?
The mysqli_fetch_fields() function is a built-in function in PHP that is used to fetch an array of field objects representing the columns in a MySQLi result set.
