db2_fetch_array
PECL ibm_db2 >= 1.0.1
db2_fetch_array - Returns an array, indexed by column 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_array
from a scrollable cursor
Result: 0 Pook cat 3.20
5 Rickety Ride goat 9.70
2 Smarty horse 350.00