top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is the difference between function mysql_fetch_object and mysql_fetch_array?

+1 vote
57 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 Google+ Share Button LinkedIn Share Button Multiple Social 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...