<?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.12 $ --> <refentry xml:id="function.ora-fetch-into" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ora_fetch_into</refname> <refpurpose>Fetch a row into the specified result array</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>int</type><methodname>ora_fetch_into</methodname> <methodparam><type>resource</type><parameter>cursor</parameter></methodparam> <methodparam><type>array</type><parameter role="reference">result</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam> </methodsynopsis> <para> Fetches a row of data into an array. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>cursor</parameter></term> <listitem> <para> An Oracle cursor, opened with <function>ora_open</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>result</parameter></term> <listitem> <para> An array passed by reference. It will be filled with the fetched values. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>flags</parameter></term> <listitem> <para> There are two possible flags. If <constant>ORA_FETCHINTO_NULLS</constant> is set, columns with <constant>NULL</constant> values are set in the array; and if the <constant>ORA_FETCHINTO_ASSOC</constant> flag is set, an associative array is created. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the number of columns fetched, or &false; on error. </para> </refsect1> <refsect1 role="changelog"> &reftitle.changelog; <para> <informaltable> <tgroup cols="2"> <thead> <row> <entry>&Version;</entry> <entry>&Description;</entry> </row> </thead> <tbody> <row> <entry>5.1.0</entry> <entry> &oracle.deprecated; </entry> </row> </tbody> </tgroup> </informaltable> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>ora_fetch_into</function></title> <programlisting role="php"> <![CDATA[ <?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']; ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="notes"> &reftitle.notes; <para> &oracle.replacement.desc; <simplelist> <member>A fetch function like <function>oci_fetch_array</function></member> </simplelist> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ora_parse</function></member> <member><function>ora_exec</function></member> <member><function>ora_fetch</function></member> <member><function>ora_do</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->