CUBRID 函数
PHP Manual

cubrid_free_result

(PECL CUBRID >= 8.3.0)

cubrid_free_resultFrees the memory occupied by the result data

说明

bool cubrid_free_result ( resource $req_identifier )

This function frees the memory occupied by the result data. It returns TRUE on success or FALSE on failure.

参数

req_identifier

This is the request identifier.

返回值

TRUE on success.

FALSE on failure.

范例

Example #1 cubrid_free_result() example

<?php
    $link 
cubrid_connect("localhost"30000"demodb2""dba""");
    if (!
$link)
    {
        die(
'Could not connect.');
    }
    
$query 'SELECT id, name, address, salary FROM employees';
    
$result cubrid_execute($link$query);
    if (
$result
    {
        
$row cubrid_fetch_assoc($result);
        
/* Now we free up the result and continue on with our script */
        
cubrid_free_result($result);
        echo 
$row['id']."<br>".$row['address'];
    }
?>

以上例程会输出:

Result:
1
1st Avenue, New York

CUBRID 函数
PHP Manual