What is the difference between mysql_fetch_object and
mysql_fetch_array?

Answer Posted / vinod

mysql_fetch_object : as an object, we can access value by
column name as properties of the object.

mysql_fetch_array : as an associative array, we can access
value by column name as like associative name as column name
from array

Is This Answer Correct ?    11 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is http php?

500


What is meant by an associative array?

519


How do I run a php file?

514


What is data structure in php?

507


How to convert a json string to an array in php?

557






What is php session id?

532


What's the difference between using mysql_ functions and pdo?

523


What is the use of @ in php?

552


How to reset/destroy a cookie?

579


Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?

550


How to turn on the session support in php?

532


What u mean by query?

486


Which php global variable is used for uploading a file?

510


How to convert one date format into another in php?

489


Explain what is the difference between $var and $$var?

527