dbx_close

(PHP 4 >= 4.0.6, PHP 5 <= 5.0.4)

dbx_close -- Close an open connection/database

说明

int dbx_close ( object link_identifier )

参数

link_identifier

The DBX link object to close.

返回值

Returns 1 on success and 0 on errors.

范例

例 1. dbx_close() example

<?php
$link
= dbx_connect(DBX_MYSQL, "localhost", "db", "username", "password")
    or die(
"Could not connect");

echo
"Connected successfully";
dbx_close($link);
?>

注释

注意: Always refer to the module-specific documentation as well.

参见

dbx_connect()