Jump to content

basic question on differences


ILYAS415

Recommended Posts

Just out of curiosity, is there a MAJOR difference between the functions...

mysql_fetch_array($sql);

and

mysql_fetch_object($sql);

 

Id like to know because i use the mysql_fetch_object and i can see a majority of people use the array one.

 

p.s. i no that mysql_fetch_object uses "$var->tablecolumn" and mysql_array uses "$var[0]".

Link to comment
https://forums.phpfreaks.com/topic/90268-basic-question-on-differences/
Share on other sites

mysql_fetch_object — Fetch a result row as an object

http://fr.php.net/mysql_fetch_object

 

An Object

http://ca3.php.net/zend-engine-2.php

 

mysql_fetch_array — Fetch a result row as an associative array, a numeric array, or both

http://fr.php.net/mysql_fetch_array

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.