mysqli_fetch_assoc
mysqli_fetch_assoc — Fetch a result row as an associative array.Description
mysqli_fetch_assoc( mysqli_result $result ): array|null|falseReturns an associative array that corresponds to the fetched row or null if there are no more rows.
Note: Field names returned by this function are case-sensitive.
Note: This function sets NULL fields to the PHP null value.
Parameters
result
Procedural style only: A mysqli_result object returned by mysqli_query(), mysqli_store_result(), mysqli_use_result() or mysqli_stmt_get_result().
Return Values
Returns an associative array of values representing the fetched row in the result set, where each key in the array represents the name of one of the result set's columns or null if there are no more rows in result set. If two or more columns of the result have the same field names, the last column will take precedence. To access the other column(s) of the same name, you either need to access the result with numeric indices by using mysqli_fetch_row() or add alias names.More information about mysqli_fetch_assoc on official PHP documentation site
mysqli_fetch_assoc - Popular snippets
- PHP 7.4 / MySQL 8.0 mysqli_query mysqli_fetch_assoc explode count array_push trim array_count_values array_keys print_r
last run:
2023-06-06 16:46:02
15
- PHP 8.0 / MySQL 8.0 mysqli_query mysqli_num_rows mysqli_fetch_assoc
last run:
2022-02-16 13:43:51
10
- PHP 8.0 / MySQL 5.7 mysqli_query mysqli_fetch_assoc print_r
last run:
2023-02-01 18:53:15
9
- PHP 8.1 / MySQL 8.0 mysqli_error mysqli_fetch_assoc date strtotime
last run:
2023-06-01 11:19:56
8
- PHP 8.0 / MySQL 5.7 mysqli_real_escape_string mysqli_query mysqli_fetch_assoc print_r
last run:
2023-10-27 17:30:50
8
- PHP 7.4 / MySQL 8.0 mysqli_query mysqli_fetch_assoc explode count array_push trim print_r array_count_values
last run:
2022-06-20 17:40:11
8
- PHP 8.1 / MySQL 5.7 mysqli_query mysqli_num_rows mysqli_fetch_assoc
last run:
2024-07-29 07:08:32
7
- PHP 8.0 / MySQL 5.7 mysqli_query mysqli_num_rows mysqli_fetch_assoc
last run:
2022-07-26 21:44:34
7
- PHP 8.2.13 / MySQL 5.7 mysqli_num_rows mysqli_fetch_assoc printf
last run:
2023-09-17 09:56:11
6
- PHP 8.1 / MySQL 8.0 mysqli_query mysqli_fetch_assoc array_push print_r
last run:
2023-04-17 18:37:57
6
mysqli_fetch_assoc - New snippets
-
PHP 8.1 / MySQL 5.7 mysqli_query mysqli_error mysqli_fetch_assoc
added at:
2024-11-15 16:05:00
1
-
PHP 8.1 / MySQL 5.7 mysqli_error mysqli_fetch_assoc
added at:
2024-11-15 16:04:04
1
-
PHP 8.1 / MySQL 5.7 mysqli_error mysqli_fetch_assoc
added at:
2024-11-15 16:03:50
1
-
PHP 8.1 / MySQL 5.7 mysqli_error mysqli_fetch_assoc
added at:
2024-11-15 16:03:24
1
-
PHP 5.6 / MySQL 8.0 mysqli_fetch_assoc
added at:
2024-11-03 07:54:02
1
-
PHP 5.6 / MySQL 8.0 mysqli_fetch_assoc
added at:
2024-11-03 07:53:58
1
-
PHP 5.6 / MySQL 8.0 mysqli_fetch_assoc
added at:
2024-11-03 07:47:52
1
-
PHP 5.6 / MySQL 8.0 mysqli_fetch_assoc
added at:
2024-11-03 07:47:49
2
-
PHP 5.6 / MySQL 8.0 mysqli_fetch_assoc
added at:
2024-11-03 07:47:40
1
-
PHP 5.6 / MySQL 8.0 mysqli_fetch_assoc
added at:
2024-11-03 07:47:36
1