Multiple choice

_____________ fetches a result row as an associative array, a numeric array or both.

  1. mysql_fetch_row

  2. mysql_fetch_object

  3. mysql_fetch_array

  4. both (1) and (3)

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

mysql_fetch_array returns a row as an array with both numeric indices (0, 1, 2...) and associative keys (column names). mysql_fetch_row returns only a numeric array, while mysql_fetch_object returns an object. The function name 'array' specifically indicates it can return both types.