Difference between mysql_fetch_object and mysql_fetch_array

3 replies
please some one tell the difference between mysql_fetch_object and
mysql_fetch_array?
#difference #mysqlfetcharray #mysqlfetchobject
  • {{ DiscussionBoard.errors[4424047].message }}
  • Profile picture of the author johnnyN
    very similar.

    returning an object is usually more effective if you are used to Object oriented language.
    In my opinion it is easier to write code for objects, especially if you are doing complicated coding.

    but if you are just doing basic stuff, an array may is easier.
    {{ DiscussionBoard.errors[4452025].message }}
  • Profile picture of the author johnnyN
    very similar.

    returning an object is usually more effective if you are used to Object oriented language.
    In my opinion it is easier to write code for objects, especially if you are doing complicated coding.

    but if you are just doing basic stuff, an array may is easier.
    {{ DiscussionBoard.errors[4452028].message }}

Trending Topics