previousDB_result::fetchRow() (Previous) (Next) DB_result::nextResult()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

DB_result::free()

DB_result::free() – Libère un résultat

Synopsis

boolean free ( )

Description

Supprime le résultat et libère la mémoire occupée par celui-ci. Cette fonction ne supprime PAS l'objet DB_result lui-même.

Return value

boolean - Returns TRUE on success, FALSE on failure.

Example

Utilisation de free()

<?php
// On suppose que $db est un objet DB valide...
$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.

previousDB_result::fetchRow() (Previous) (Next) DB_result::nextResult()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.