# PHP函数:ifx\_close()

**URL:** <https://www.isharkfly.com/t/php-ifx-close/3456>\
**Category:** PHP\
**Created:** [October 18, 2012, 1:54am UTC](https://www.isharkfly.com/t/php-ifx-close/3456 "2012-10-18T01:54:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 18, 2012, 1:54am UTC](https://www.isharkfly.com/t/php-ifx-close/3456/1 "2012-10-18T01:54:10Z")

</div>

关闭 Informix 服务器连接。

语法: boolean ifx\_close(int [link\_identifier]);

返回值: 布尔值

函数种类: 数据库功能

内容说明  
本函数关闭与 Informix 数据库服务器的连接。若无指定参数 link\_identifier 则会关闭最后的一笔连接。用 ifx\_pconnect() 连接则无法使用本函数关闭。本函数可以省略，当 PHP 整页程序结束后，将会自动关闭与数据库的非永久性 (non-persistent) 连接。返回值均为 true。
