DB_result::free() -- Releases a result set
Leírás
Deletes the result set and frees the memory occupied by the result set.
Does not delete the DB_result
object itself.
Visszatérési érték
boolean - Visszatérési értéke TRUE sikeres futás esetén,
FALSE amennyiben hiba lépett fel.
Példa
Példa 35-1. 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();
?>
|
|
Megjegyzés
Ez a függvény nem hívható
statikusan.