PHP mysqli_fetch_assoc() Function
Fetch a row from a result set as an associative array:
mysqli_fetch_assoc()
Definition and Usage
The mysqli_fetch_assoc() function fetches a row from a result set as an associative array.
**Note:** The field names returned by this function are case-sensitive.
Syntax
mysqli_fetch_assoc(
result
)
;
| Parameters | Description |
|---|---|
| result | Required. Specifies the result set identifier returned by mysqli_query(), mysqli_store_result(), or mysqli_use_result(). |
Technical Details
| Return Value: | Returns an associative array representing the fetched row, or NULL if there are no more rows in the result set. |
|---|---|
| PHP Version: | 5+ |
PHP MySQLi Reference Manual