mysql_fetch_object and mysql_fetch_array are mostly similar with little difference.
mysql_fetch_object returns whole object and data can be retrieved using fields or columns names,
Object is returned instead of array in result where as using  mysql_fetch_array you can get data using array index or offsets  and some others ways as well.

Leave a Reply

Your email address will not be published. Required fields are marked *