Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Difference between mysql_fetch_object and mysql_fetch_array (https://www.warriorforum.com/programming/429046-difference-between-mysql_fetch_object-mysql_fetch_array.html)

silver86 8th August 2011 05:18 AM

Difference between mysql_fetch_object and mysql_fetch_array
 
please some one tell the difference between mysql_fetch_object and
mysql_fetch_array?

Tomos Wyn 8th August 2011 06:16 AM

Re: Difference between mysql_fetch_object and mysql_fetch_array
 
PHP: mysql_fetch_object - Manual

PHP: mysql_fetch_array - Manual

johnnyN 12th August 2011 02:33 AM

Re: Difference between mysql_fetch_object and mysql_fetch_array
 
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.

johnnyN 12th August 2011 02:34 AM

Re: Difference between mysql_fetch_object and mysql_fetch_array
 
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.


All times are GMT -6. The time now is 12:23 PM.