top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between function mysql_fetch_object and mysql_fetch_array?

+1 vote
476 views
What is the difference between function mysql_fetch_object and mysql_fetch_array?
posted May 23, 2014 by Amanpreet Kaur

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

mysql_fetch_object has same properties as that of mysql_fetch_array with only one difference that an object is returned instead of array in mysql_fetch_object. Means that you can only access the data by field names and not by their offsets.

answer May 26, 2014 by Karamjeet Singh
...