Frees the memory associated with a result (PHP 5)
void mysqli_free_result ( mysqli_result result )

Procedural style:

Object oriented style (all methods are equivalent):

mysqli_result {
  void free();
  void close();
  void free_result();

The mysqli_free_result() function frees the memory associated with the result represented by the result parameter, which was allocated by mysqli_query(), mysqli_store_result() or mysqli_use_result().


You should always free your result with mysqli_free_result(), when your result object is not needed anymore.


This function doesn't return any value.