PHP8 cubrid_close_request
2024-03-27 10:21 更新
(PECL CUBRID >= 8.3.0)
cubrid_close_request — 关闭请求句柄
说明
cubrid_close_request(resource $req_identifier): bool
cubrid_close_request() 函数关闭请求 参数给出的句柄,以及 释放与句柄相关的内存区域。它是 cubrid_close_prepare() 的别名。req_identifier
参数
req_identifier
请求标识符。
返回值
成功后返回 true。
示例
示例 #1 cubrid_close_request() 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_request($req); // or you can use cubrid_close_prepare($req)
}
cubrid_disconnect($con);
}
?>
参见
- cubrid_close_prepare() - 关闭请求句柄
以上内容是否对您有帮助:
更多建议: