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 / devendra modi
mysql_fetch_object() is better then mysql_fetch_array()
because mysql_fetch_array () will return numeric and
associative array if you have 1 lac record then it will
generate two array mean load two lack record. so it is
slower then mysql_fetch_object()
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is php compared to html?
What is repository in php?
What is strcmp?
Difference between mysql_connect and mysql_pconnect?
What is static in php?
Explain type casting and type juggling.
What is php built on?
What are the steps for the payment gateway processing?
What are the different types of array in php?
How can we increase execution time of a php script?
How do I escape data before storing it into the database?
What should we do to be able to export data into an excel file?
Which framework is best for php development?
What is the sign to start variables in PHP?
What is phpsessid?