I have been reading about mysql_fetch_* methods. This is what I have learnt from PHP.org website.
mysql_fetch_array — Fetch a result row as an associative array, a numeric array, or both
mysql_fetch_assoc — Fetch a result row as an associative array
mysql_fetch_object — Fetch a result row as an object
mysql_fetch_row — Get a result row as an enumerated array
It looks like mysql_fetch_array contains all the values that are present in
mysql_fetch_assoc,mysql_fetch_object,mysql_fetch_row. Because mysql_fetch_assoc contains only Associative array,
mysql_fetch_row contains data in Numeric Array.
mysql_fetch_object also returns associative array.
Kindly tell me whether my understanding is correct or wrong.
mysql_xxx()functions are deprecated and not recommended for use; if you're learning PHP, you should be learning a more modern API such as PDO.