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()
Answer Posted / pratik
mysql_fetch_object() is the best method. It is not
generally affected in small result. mysql_fetch_array() has
some limit to fetch data from table. when result it too high
(more than 4000 record) at that time
mysql_fetch_object()will support.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the difference between == and === operator in PHP?
Explain the difference between isset() and empty()?
Is null or empty c#?
What is singleton class in php?
how to track no of users logged in?
How does php strcmp work?
Which escape sequences can be used in single quoted strings in php?
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?
What beforeFilter() is used?
What types of Data Can Be Used as Array Keys?
How do I update php?
How to create a table using php?
Can you define an array argument as a reference type?
How to get a random value from a php array?
Is php used for frontend or backend?