•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

Where do I run php code?

0 Answers  


Where can I learn php?

0 Answers  


How to connect to a url in php?

0 Answers  


how to select single row from table and insert into same table as a new record by using a single sql query.

2 Answers  


How can we get ip address of a client in php?

0 Answers  






what is the importence of session.save_path in Php.ini file and wht changes u've to made before using sesssions in ur php program first time?

4 Answers  


What is the function file_get_contents() usefull for?

0 Answers  


What is difference between mysql_fetch_array and mysql_fetch_assoc?

0 Answers  


Can you define an argument as a reference type?

0 Answers  


How is a constant defined in a PHP script?

0 Answers  


What are super global variables in php?

0 Answers  


How to write the form tag correctly for uploading files?

0 Answers  


Categories