Home > Article > Backend Development > How to use php mysqli_free_result function
php The mysqli_free_result function is used to release the result memory. Its syntax is mysqli_free_result(result). The parameter result is required and there is no return value.
php How to use the mysqli_free_result function?
Definition and usage
mysqli_free_result() function releases the result memory.
Syntax
mysqli_free_result(result);
Parameters
result Required. Specifies the result set identifier returned by mysqli_query(), mysqli_store_result(), or mysqli_use_result().
Return value: No return value.
PHP version: 5
Get rows from the result set and then release the result memory:
"; } // 释放结果集 mysqli_free_result($result); } mysqli_close($con); ?>
The above is the detailed content of How to use php mysqli_free_result function. For more information, please follow other related articles on the PHP Chinese website!