array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'mysqli-stmt.free-result.php', 1 => 'mysqli_stmt::free_result', 2 => 'Frees stored result memory for the given statement handle', ), 'up' => array ( 0 => 'class.mysqli-stmt.php', 1 => 'mysqli_stmt', ), 'prev' => array ( 0 => 'mysqli-stmt.field-count.php', 1 => 'mysqli_stmt::$field_count', ), 'next' => array ( 0 => 'mysqli-stmt.get-result.php', 1 => 'mysqli_stmt::get_result', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mysqli/mysqli_stmt/free-result.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

mysqli_stmt::free_result

mysqli_stmt_free_result

(PHP 5, PHP 7, PHP 8)

mysqli_stmt::free_result -- mysqli_stmt_free_resultFrees stored result memory for the given statement handle

说明

面向对象风格

public mysqli_stmt::free_result(): void

过程化风格

mysqli_stmt_free_result(mysqli_stmt $statement): void

Frees the result memory associated with the statement, which was allocated by mysqli_stmt_store_result().

参数

statement

仅以过程化样式:由 mysqli_stmt_init() 返回的 mysqli_stmt 对象。

返回值

没有返回值。

参见