Example 1. Closing a connection
     The following example demonstrates a successful attempt to close a 
     connection to an IBM DB2, Cloudscape, or Apache Derby database.
    
| <?php
$conn = db2_connect('SAMPLE', 'db2inst1', 'ibmdb2');
$rc = db2_close($conn);
if ($rc) {
    echo "Connection was successfully closed.";
}
?> | 
The above example will output:
| Connection was successfully closed. |