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
How to genrate report in wordpress cms
Tell me what is the use of the function htmlentities?
What is strlen function in php?
What is __ invoke in php?
How do you check if a variable has been set in php?
What is the difference between unset and unlink?
What is $_session in php?
What is a base url?
How do I expire a php session after 30 minutes?
What is the current stable version of php?
Explain what is the static variable in function useful for?
Differences between get, post and request methods ?
Explain do you use composer? If yes, what benefits have you found in it?
How to execute an sql query?
Where are php configuration settings stored?