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
Can php use gettext?
When a conditional statement is ended with an endif?
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?
What is super keyword in c++?
What function should you use to join array elements with a glue string?
Is python better than php?
What does the expression exception::__tostring means?
What is purpose of @ in Php?
What does sign mean php?
When do you use define() and when do you use const. What are the main differences between those two?
What is the difference between array_merge() and array_merge_recursive() in php?
What is good average session duration?
What is sql injection in php?
What is php crud api?
Write a program in php to find the occurrence of a word in a string?