Home  >  Article  >  Backend Development  >  How to use php mysqli_free_result function

How to use php mysqli_free_result function

藏色散人
藏色散人Original
2019-05-26 14:36:342961browse

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.

How to use php mysqli_free_result function

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn