How to compare mysql_fetch_array and mysql_fetch_object?

Posted by Jennifer | Updated on

How to compare mysql_fetch_array and mysql_fetch_object?

Here are the notable differences among mysql_fetch_array and mysql_fetch_object:

  • mysql_fetch_array returns a result row as a regular array or associated array from the database.
  • mysql_fetch_object returns a result row as an object from the database.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers