php-doc-en/reference/sqlite/functions/sqlite-field-name.xml
Kenneth Schwartz 80c2907dc3 Add SQLite classes, update examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@177066 c90b9560-bf6c-de11-be94-00142212c4b1
2005-01-12 08:56:59 +00:00

63 lines
2.1 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<refentry id="function.sqlite-field-name">
<refnamediv>
<refname>sqlite_field_name</refname>
<refname>SQLiteResult->fieldName</refname>
<refname>SQLiteUnbuffered->fieldName</refname>
<refpurpose>Returns the name of a particular field</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>string</type><methodname>sqlite_field_name</methodname>
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
<methodparam><type>int</type><parameter>field_index</parameter></methodparam>
</methodsynopsis>
<para>Object oriented style (method):</para>
<classsynopsis>
<ooclass><classname>SQLiteResult</classname></ooclass>
<methodsynopsis>
<type>string</type><methodname>fieldName</methodname>
<methodparam><type>int</type><parameter>field_index</parameter></methodparam>
</methodsynopsis>
</classsynopsis>
<classsynopsis>
<ooclass><classname>SQLiteUnbuffered</classname></ooclass>
<methodsynopsis>
<type>string</type><methodname>fieldName</methodname>
<methodparam><type>int</type><parameter>field_index</parameter></methodparam>
</methodsynopsis>
</classsynopsis>
<para>
Given the ordinal column number, <parameter>field_index</parameter>,
<function>sqlite_field_name</function> returns the name of that field in
the result set <parameter>result</parameter>.
</para>
<para>
The column name returned by <function>sqlite_field_name</function> will be
case-folded according to the value of the
<link linkend="ini.sqlite.assoc-case">sqlite.assoc_case</link> configuration
option.
</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
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
-->