What is the difference between mysql_fetch_object and
mysql_fetch_array?
Answer Posted / arumugam
mysql_fetch_object : will return the results from database
as objects. fields will be accessible like in objects
i.e $result->name,$result->cust_name
mysql_fetch_array : will return the results from database as
an array.The array will be in in associative as well as
numeric manner.
i.e $result['column_name'] or $result[0].here '0'indicates
first column in table
Is This Answer Correct ? | 47 Yes | 4 No |
Post New Answer View All Answers
What is difference between html and php?
How to replace a text in a string with another text in php?
How to create a session? How to remove data from a session?
What are the different loops in php?
What is the method to register a variable into a session?
What is cms php?
Write a php script to get the largest key in an array?
Why die is used in php?
How many escape sequences are recognized in single-quoted strings?
What is trait in php?
Is php 7 backwards compatible?
What is static method php?
How would you open a directory for reading in php?
What is the use of $_server and $_env?
What are the two types of variables?