PHP mysqli_free_result() Function

The mysqli_free_result() function frees the memory associated with the result.

Examples -

Fetch rows from a result-set, then free the memory associated with the result:

ParameterDescription
resultRequired. Specifies a result set identifier returned by mysqli_query(), mysqli_store_result() or mysqli_use_result()