Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 8th Aug 2011, 05:18 AM   #1
Warrior Member
 
Join Date: 2011
Posts: 9
Thanks: 0
Thanked 3 Times in 1 Post
Default
Difference between mysql_fetch_object and mysql_fetch_array
Share on: 
fb share twitter share gplus share more share

please some one tell the difference between mysql_fetch_object and
mysql_fetch_array?

silver86 is offline  
Unread 8th Aug 2011, 06:16 AM   #2
HyperActive Warrior
War Room Member
 
Tomos Wyn's Avatar
 
Join Date: 2010
Location: Wales, UK
Posts: 154
Thanks: 11
Thanked 32 Times in 28 Posts
Default
Re: Difference between mysql_fetch_object and mysql_fetch_array
Share on: 
fb share twitter share gplus share more share

PHP: mysql_fetch_object - Manual

PHP: mysql_fetch_array - Manual

Tomos Wyn is offline  
Unread 12th Aug 2011, 02:33 AM   #3
Active Warrior
War Room Member
 
Join Date: 2009
Posts: 97
Thanks: 4
Thanked 14 Times in 14 Posts
Default
Re: Difference between mysql_fetch_object and mysql_fetch_array
Share on: 
fb share twitter share gplus share more share

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 is offline  
Unread 12th Aug 2011, 02:34 AM   #4
Active Warrior
War Room Member
 
Join Date: 2009
Posts: 97
Thanks: 4
Thanked 14 Times in 14 Posts
Default
Re: Difference between mysql_fetch_object and mysql_fetch_array
Share on: 
fb share twitter share gplus share more share

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 is offline  
Closed Thread


Bookmarks

Tags
difference, mysqlfetcharray, mysqlfetchobject


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 11:37 AM.