db2_fetch_assoc
PECL ibm_db2 >= 1.0.0
db2_fetch_assoc - Returns an array, indexed by column name, representing a row in a result set
Example #1 Iterating through a forward-only cursor
Result: 0 Pook cat 3.20
5 Rickety Ride goat 9.70
2 Smarty horse 350.00
Example #2 Retrieving specific rows with db2_fetch_assoc
from a scrollable cursor
Result: 0 Pook cat 3.20
5 Rickety Ride goat 9.70
2 Smarty horse 350.00