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 are the differences between GET and POST methods?
What is abstract class in php?
Is php procedural or oop?
What is the use of htmlentities in php?
What is meant by pdo in php?
What is the function of mysql_real_escape_string in php?
How to check a variable is an array or not in php?
Why did you choose this particular career path?
Explain the visibility of the property or method?
Tell me how is it possible to parse a configuration file?
Why do we use polymorphism in php?
Name and explain five of the PHP error constants?
Why shouldn't I use mysql_* functions in php?
Is c similar to php?
Tell me what does pear stands for?