Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


•What is the difference between “mysql_fetch_array”
and “mysql_fetch_object?

Answers were Sorted based on User's Feedback



•What is the difference between “mysql_fetch_array” and “mysql_fetch_object?..

Answer / ravi farare

mysql_fetch_array() fetches record from database table as an
array. We can access each record like arr[0],arr[1]....etc.
on the other side mysql_fetch_object() fetches record from
database table as an object. So We can access each record
like obj->[column name].

Is This Answer Correct ?    21 Yes 1 No

•What is the difference between “mysql_fetch_array” and “mysql_fetch_object?..

Answer / kapil dhiman

mysql_fetch_array() return an array of records
mysql_fetch_object return an object of records

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More PHP Interview Questions

What is inheritance in php with example?

0 Answers  


Can I run php without xampp?

0 Answers  


How can we get the browser properties using PHP?

7 Answers  


How would you declare a function that receives one parameter name hello?

0 Answers  


What is PEAR in PHP?

3 Answers  






How cookies are transported from browsers to servers?

0 Answers  


Can we use get instead of post?

0 Answers  


suppose if u want to pass session value using cookies onlu.. what changes i've to made in php.ini file?

1 Answers  


Explain me is it possible to destroy a cookie?

0 Answers  


what is CURL?

0 Answers  


hi recently i had faced an interview in that they asked me that php have faced the problem of y2k so which one is that year like 2030,2059 not remember exact year anybody will tell me pls?

1 Answers  


What is mysqli_query?

0 Answers  






Categories