What is the difference between mysql_fetch_object and
mysql_fetch_array?
Answer Posted / priya ranganathan
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
array. fields will be accessible like in objects
i.e $result[name],$result[cust_name]
| Is This Answer Correct ? | 139 Yes | 10 No |
Post New Answer View All Answers
What is a query give example?
What is difference between sql and php?
What are the new features in php 7?
How do sessions work in php?
Explain what are the two main string operators?
What is the difference between php and core php?
What is different between software and app
How we can get the number of elements in an array?
Explain NULL?
What is the maximum size of a database in mysql?
What is escape data in php?
What are the different types of statements that are present in php?
In php, how to redirect from one page to another page?
How to retrieve values out of an array?
What language is similar to php?