How to retrieve the data in the result set in php

There are four method to retrieve the data in the result set of MySQL using PHP.
(i) mysql_fetch_row():- this function fetches one row from a result-set and returns it as an enumerated array.

(ii) mysql_fetch_array():- this function Fetch a result row as an associative array, a numeric array, or both.

(iii) mysql_fetch_assoc():- this function Fetch a result row as an associative array.

(iv) mysql_fetch_object():- this function Fetch a result row as an as an object.