What is the difference between mysql_fetch_object and
mysql_fetch_array?

Answer Posted / arvind pippal

mysql_fetch_object will return an object by which we can
access the database fields records while mysql_fetch_aaray
return array of database records and return associative
array.

Is This Answer Correct ?    38 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are php errors?

499


What is cookie and why do we use it?

531


What are the advantages of oops in php?

563


Is php fully object oriented?

487


Tell me what are the functions to be used to get the image's properties (size, width and height)?

545






What are objects in php?

532


Why do we use inheritance in php?

533


What is a definer in mysql?

559


Is set in php?

547


What is cURL in PHP?

550


How to read a file in php?

525


What is the difference between characters 34 and x34?

513


How to remove the new line character from the end of a text line?

516


What are the methods of array in java?

492


Which character is used to match exactly one character?

552