0
A CLEAR DIFFERENCE between MYSQLI_FETCH_ARRAY and MYSQLI_FETCH_ASSOC
Hello coders, please can someone state clearer, I mean a clear difference between mysqli_fetch_array and mysqli_fetch_assoc.
1 Respuesta
+ 2
mysqli_fetch_assoc = returns associative array
mysqli_fetch_array = returns associative, numeric, or both, as an array
"mysqli_fetch_array() is an extended version of the mysqli_fetch_row() function. In addition to storing the data in the numeric indices of the result array, the mysqli_fetch_array() function can also store the data in associative indices, using the field names of the result set as keys."