DB_result::free() – Releases a result set


boolean free ( )


Deletes the result set and frees the memory occupied by the result set. Does not delete the DB_result object itself.

Return value

boolean - Returns TRUE on success, FALSE on failure.


Using free()

// Once you have a valid DB object named $db...
$res =& $db->query('SELECT name, address FROM clients');
while (
$row =& $res->fetchRow()) {
$row['name'] . ', ' $row['address'] . "\n";


This function can not be called statically.

Fetches a row from a result set (Previous) Gets result sets from multiple queries (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.