Saturday 25 February 2012

What is the difference between mysql_fetch_object and mysql_fetch_array? | PHP


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).