PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

cubrid_free_result - Free the memory occupied by the result data | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

cubrid_free_result

(PECL CUBRID >= 8.3.0)

cubrid_free_resultFree 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. Note that it can only frees the client fetch buffer now, and if you want free all memory, use function cubrid_close_request().

パラメータ

req_identifier

This is the request identifier.

返り値

TRUE on success.

FALSE on failure.

例1 cubrid_free_result() example

<?php 
$conn 
cubrid_connect("localhost"33000"demodb");

$req cubrid_execute($conn"SELECT * FROM history WHERE host_year=2004 ORDER BY event_code");
$row cubrid_fetch_assoc($req);
var_dump($row);

cubrid_free_result($req);
cubrid_close_request($req);
cubrid_disconnect($conn);
?>

上の例の出力は以下となります。

array(5) {
  ["event_code"]=>
  string(5) "20005"
  ["athlete"]=>
  string(12) "Hayes Joanna"
  ["host_year"]=>
  string(4) "2004"
  ["score"]=>
  string(5) "12.37"
  ["unit"]=>
  string(4) "time"
}

忘却曲線を使ってこの関数を確実に記憶に残す

フォーラムで「cubrid_free_result - Free the memory occupied by the result data」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | cubrid_free_result - Free the memory occupied by the result data」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: