Different between mysql_fetch_object and mysql_fetch_assoc/array?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Different between mysql_fetch_object and mysql_fetch_assoc/array?

From: Alucard <alucard001@gmail.com>
Date: Wed Oct 05 2005 - 17:33:32 CEST

Hi all.

I am a newbie in PHP. Recently I found that there are mainly two ways
to fetch mysql(or other DB) data: by object or by array.

What is the main differences between them? Will the server use more
resources (just my thought) when fetching by object? Or any other
reasons?

Thanks in advance for advises.
Received on Tue Oct 18 02:32:18 2005