•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

How to set cookies?

0 Answers  


What are magic methods?

0 Answers  


Which framework is best for php?

0 Answers  


What is php crud api?

0 Answers  


What are escaping characters?

0 Answers  






Name some of the constants in php and their purpose.

0 Answers  


What is class extend in php?

0 Answers  


What is the use of Php variables?

0 Answers  


How can we upload a php + mysql Site

1 Answers  


What is the use of header in php?

0 Answers  


What is difference between md5 and SHA256?

0 Answers  


Which php framework is fastest?

0 Answers  


Categories