DB_result::free()

DB_result::free() – Releases a result set

Synopsis

boolean free ( )

Description

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.

Example

Using free()

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

Note

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.