1.

Which one of the following methods recuperates any memory consumed by a result set?(a) destroy()(b) mysqli_free_result()(c) alloc()(d) free()I have been asked this question in my homework.I need to ask this question from Working with Databases-2 topic in portion Objects and Databases in PHP of PHP

Answer»

The CORRECT answer is (B) mysqli_free_result()

Easiest explanation: The function mysqli_free_result() is USED to free the memory which is associated with the result. Once this method is executed, the result set is no longer AVAILABLE. Free() function was used in the previous version of PHP.



Discussion

No Comment Found

Related InterviewSolutions