MySQL Forums
Forum List  »  General

Fetch: array, object, row ? What's the different if it seen from MySQL point of view?
Posted by: Ibnu
Date: March 12, 2005 06:43AM

I know this is about PHP function but I need to know the different from MySQL point of view as this question starts to make me wonder from several weeks ago.

I had tested that mysql_fetch_object or mysql_fetch_row is faster than mysql_fetch_array.
- Exactly, what's the different between each other?
- How MySQL handle for each function ?
- When each one of it should be used? Or what conditions?
- Is it absolutely true no matter how that array slower than object or row? If it is, why many developers use mysql_fetch_array? Me myself always use fetch_object instead of fetch_array.

Any input will be appreciated.

Cheers,
Ibnu

Options: ReplyQuote


Subject
Written By
Posted
Fetch: array, object, row ? What's the different if it seen from MySQL point of view?
March 12, 2005 06:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.