PHP 매뉴얼
이전 |  | 다음

# ora_fetch_into

(PHP 3, PHP 4 , PHP 5)

ora_fetch_into -- Fetch a row into the specified result array

## Description

int ora_fetch_into ( resource cursor, array result [, int flags])

Fetches a row of data into an array. The `flags` has two flag values: if the `ORA_FETCHINTO_NULLS` flag is set, columns with `NULL` values are set in the array; and if the `ORA_FETCHINTO_ASSOC` flag is set, an associative array is created.

Returns the number of columns fetched.

예 1. ora_fetch_into()

`<?php $results = array(); ora_fetch_into($cursor, $results); echo $results[0]; echo $results[1]; $results = array(); ora_fetch_into($cursor, $results, ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC); echo $results['MyColumn']; ?>`

See also ora_parse(),ora_exec(), ora_fetch(), and ora_do().

이전 | 처음으로 | 다음
ora_exec | 위로 | ora_fetch