array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'mysqli-result.free.php', 1 => 'mysqli_result::free', 2 => 'Frees the memory associated with a result', ), 'up' => array ( 0 => 'class.mysqli-result.php', 1 => 'mysqli_result', ), 'prev' => array ( 0 => 'mysqli-result.field-seek.php', 1 => 'mysqli_result::field_seek', ), 'next' => array ( 0 => 'mysqli-result.getiterator.php', 1 => 'mysqli_result::getIterator', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mysqli/mysqli_result/free.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

mysqli_result::free

mysqli_result::close

mysqli_result::free_result

mysqli_free_result

(PHP 5, PHP 7, PHP 8)

mysqli_result::free -- mysqli_result::close -- mysqli_result::free_result -- mysqli_free_resultFrees the memory associated with a result

说明

面向对象风格

public mysqli_result::free(): void
public mysqli_result::close(): void
public mysqli_result::free_result(): void

过程化风格

mysqli_free_result(mysqli_result $result): void

Frees the memory associated with the result.

参数

result

仅以过程化样式:由 mysqli_query()mysqli_store_result()mysqli_use_result()mysqli_stmt_get_result() 返回的 mysqli_result 对象。

返回值

没有返回值。

参见