Which one of the following methods recuperates any memory consumed by a result set?
A
destroy()
B
mysqli_free_result()
C
alloc()
D
free()
Correct Answer: mysqli_free_result()
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.