•What is the difference between “mysql_fetch_array”
and “mysql_fetch_object?
Answers were Sorted based on User's Feedback
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 |
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 |
What is php? Why it is used?
How to create reusable code in php?
Give any ten basic functions in PHP?
Which is true about the singleton design pattern?
Which is the best method to fetch the data from mysql? 1.mysql_fetch_array() 2.mysql_fetch_object() 3.mysql_fetch_row() 4.mysql_fetch_assoc()
What does the scope of variables means?
What is meant by content management system?
3 Answers Global Logic, IBEE, TCS, Toyota,
Is php faster than javascript?
What is difference between print_r and echo in php?
why we use @symbol before the variable
What is a substring in php?
Explain the difference between static and dynamic websites?