db2_connect

PECL ibm_db2 >= 1.0.0
db2_connect - Returns a connection to a database
Manual
Code Examples

Example #1 Creating a cataloged connection

Result: Connection succeeded.
PHP Version:

Example #2 Creating an uncataloged connection

Result: Connection succeeded.
PHP Version:

Example #3 Creating a connection with autocommit off by default

Result: Connection succeeded. Autocommit is off.
PHP Version:

Example #4 i5/OS best performance

Result: ANIMALS NAMES PICTURES
PHP Version:

Example #5 Using trusted context

Result: Explicit trusted connection succeeded. User has been switched.
PHP Version: