cubrid_close_prepare
(PECL CUBRID >= 8.3.0)
cubrid_close_prepare — Close the request handle
說明
cubrid_close_prepare(resource
$req_identifier
): bool
The cubrid_close_prepare() function closes the request
handle given by the req_identifier
argument, and
releases the memory region related to the handle. It is an alias of
cubrid_close_request().
參數
-
req_identifier
-
Request identifier.
返回值
Return true
on success.
範例
示例 #1 cubrid_close_prepare() example
<?php
$con = cubrid_connect ("localhost", 33000, "demodb", "dba", "");
if ($con) {
echo "connected successfully";
$req = cubrid_execute ( $con, "select * from members",
CUBRID_INCLUDE_OID | CUBRID_ASYNC);
if ($req) {
while ( list ($id, $name) = cubrid_fetch ($req) ){
echo $id;
echo $name;
}
cubrid_close_prepare($req); // or you can use cubrid_close_request($req)
}
cubrid_disconnect($con);
}
?>