Can someone explain the difference between the following PHP database functions:
[FONT=arial]mysql_fetch_object[/FONT]
and
[FONT=arial]mysql_fetch_array[/FONT]
I've been using both of them. The PHP Manual does not have many examples showing the difference between the two.
I know that the [FONT=arial]mysql_fetch_array[/FONT] function uses the array operator [FONT=arial]$Row['Variable'][/FONT] to output the piece of data extracted from the database.
Also, I know that the [FONT=arial]mysql_fetch_object[/FONT] uses the [FONT=arial]$Row->Variable[/FONT] code type snippet to output the same piece of data extracted from the database.
Other than that I'm not sure about the difference. What I'm trying to figure out is in what situation would it would be best to use the [FONT=arial]mysql_fetch_object[/FONT] and in what situation would it be best to use the other function, [FONT=arial]mysql_fetch_array[/FONT]
Thank you in advance.
Volitics