DB_result::free()
DB_result::free() – Releases a result set
Synopsis
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()
<?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();
?>
Замечание
This function can not be called statically.