Fetches one row of data from the result set and returns it as an array.
Each subsequent call to this function will return the next row within the
result set, or null if there are no more rows.
In addition to storing the data in the numeric indices of the result array,
this function can also store the data in associative indices
by using the field names of the result set as keys.
If two or more columns of the result have the same name, the last
column will take precedence and overwrite any previous data. To
access multiple columns with the same name, the numerically indexed
version of the row must be used.
Note:
Field names returned by this function
are case-sensitive.
Note:
This function sets NULL fields to
the PHP null value.
This optional parameter is a constant indicating what type of array
should be produced from the current row data. The possible values for
this parameter are the constants MYSQLI_ASSOC,
MYSQLI_NUM, or MYSQLI_BOTH.