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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of in_array() function in php?

535


How to return ascii value of character in php?

585


What is a model in php?

528


Which function will you use to create an array?

511


Which array function checks if the particular key exists in the array?

487






Is wordpress a php framework?

515


Explain mixed and callback functions?

608


Explain what is memcache?

500


Tell us why did you choose this particular career path?

515


How to remove duplicate values from array using php?

514


What are magic constants in php?

557


Who is the father of php?

553


What is http get and post?

524


Can php use gettext?

552


What is difference between readonly and constant?

497