db2_fetch_both
PECL ibm_db2 >= 1.0.0
db2_fetch_both - Returns an array, indexed by both column name and position, 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_both
from a scrollable cursor
Result: 0 Pook cat 3.20
5 Rickety Ride goat 9.70
2 Smarty horse 350.00