mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-19 10:28:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78496 c90b9560-bf6c-de11-be94-00142212c4b1
68 lines
2.3 KiB
XML
68 lines
2.3 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<!-- splitted from ./en/functions/msql.xml, last change in rev 1.2 -->
|
|
<refentry id="function.msql-fetch-array">
|
|
<refnamediv>
|
|
<refname>msql_fetch_array</refname>
|
|
<refpurpose>Fetch row as array</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>msql_fetch_array</methodname>
|
|
<methodparam><type>int</type><parameter>query_identifier</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>result_type</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Returns an array that corresponds to the fetched row, or &false; if
|
|
there are no more rows.
|
|
</para>
|
|
<para>
|
|
<function>msql_fetch_array</function> is an extended version of
|
|
<function>msql_fetch_row</function>. In addition to storing the
|
|
data in the numeric indices of the result array, it also stores
|
|
the data in associative indices, using the field names as keys.
|
|
</para>
|
|
<para>
|
|
The second optional argument <parameter>result_type</parameter>
|
|
in <function>msql_fetch_array</function> is a constant and can
|
|
take the following values: MSQL_ASSOC, MSQL_NUM, and MSQL_BOTH.
|
|
</para>
|
|
<para>
|
|
Be careful if you are retrieving results from a query that may
|
|
return a record that contains only one field that has a value of
|
|
0 (or an empty string, or &null;).
|
|
</para>
|
|
<para>
|
|
An important thing to note is that using
|
|
<function>msql_fetch_array</function> is NOT significantly slower
|
|
than using <function>msql_fetch_row</function>, while it provides
|
|
a significant added value.
|
|
</para>
|
|
<para>
|
|
For further details, also see
|
|
<function>msql_fetch_row</function>.
|
|
</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
|
|
-->
|