What is the difference between mysql_fetch_object and mysql_fetch_array?

Report
Question
170 views

Please explain why do you think this question should be reported?

Report Cancel

mysql_fetch_object() is similar tomysql_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).

Please follow and like us:

About the Author