E
x
c
e
l
P
T
P

What is the difference between mysql_fetch_object and mysql_fetch_array?

March 4, 2014

mysql_fetch_object() is similar to mysql_fetch_array(), with one difference –
an object is returned, instead of an array. Indirectly, that means that
you can only access the data by the field names, and not by their
offsets (numbers are illegal property names).