How to use php mysqli_free_result function

藏色散人
Release: 2023-02-22 19:44:01
Original
2949 people have browsed it

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);
Copy after login

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);
?>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!