Source of: /manual/en/function.sqlite-column.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.sqlite.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'function.sqlite-column.php',
1 => 'sqlite_column',
),
'up' =>
array (
0 => 'ref.sqlite.php',
1 => 'SQLite Functions',
),
'prev' =>
array (
0 => 'function.sqlite-close.php',
1 => 'sqlite_close',
),
'next' =>
array (
0 => 'function.sqlite-create-aggregate.php',
1 => 'sqlite_create_aggregate',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.sqlite-column" class="refentry">
<div class="refnamediv">
<h1 class="refname">sqlite_column</h1>
<h1 class="refname">SQLiteResult->column</h1>
<h1 class="refname">SQLiteUnbuffered->column</h1>
<p class="verinfo">(PHP 5, PECL sqlite >= 1.0.0)</p><p class="refpurpose"><span class="refname">sqlite_column</span> -- <span class="refname">SQLiteResult->column</span> -- <span class="refname">SQLiteUnbuffered->column</span> — <span class="dc-title">Fetches a column from the current row of a result set</span></p>
</div>
<a name="function.sqlite-column.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type"><a href="language.pseudo-types.php#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><b>sqlite_column</b></span>
( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$result</tt></span>
, <span class="methodparam"><span class="type"><a href="language.pseudo-types.php#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$index_or_name</tt></span>
[, <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$decode_binary</tt><span class="initializer"> = true</span></span>
] )</div>
<div class="classsynopsis">
<div class="ooclass"><b class="classname">SQLiteResult</b></div>
<div class="methodsynopsis dc-description">
<span class="type">mixed</span> <span class="methodname"><b>column</b></span>
( <span class="methodparam"><span class="type"><a href="language.pseudo-types.php#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$index_or_name</tt></span>
[, <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$decode_binary</tt><span class="initializer"> = true</span></span>
] )</div>
</div>
<div class="classsynopsis">
<div class="ooclass"><b class="classname">SQLiteUnbuffered</b></div>
<div class="methodsynopsis dc-description">
<span class="type">mixed</span> <span class="methodname"><b>column</b></span>
( <span class="methodparam"><span class="type"><a href="language.pseudo-types.php#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter">$index_or_name</tt></span>
[, <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$decode_binary</tt><span class="initializer"> = true</span></span>
] )</div>
</div>
<p class="para">
Fetches the value of a column named <i><tt class="parameter">index_or_name</tt></i>
(if it is a string), or of the ordinal column numbered
<i><tt class="parameter">index_or_name</tt></i>
(if it is an integer) from the
current row of the query result handle <i><tt class="parameter">result</tt></i>
.
</p>
</div>
<a name="function.sqlite-column.parameters"></a><div class="refsect1 parameters">
<h3 class="title">Parameters</h3>
<p class="para">
</p><dl>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">result</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
The SQLite result resource. This parameter is not required when using
the object-oriented method.
</p>
</dd>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">index_or_name</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
The column index or name to fetch.
</p>
</dd>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">decode_binary</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">When the <i><tt class="parameter">decode_binary</tt></i>
parameter is set to <b><tt class="constant">TRUE</tt></b> (the default), PHP will decode the binary encoding
it applied to the data if it was encoded using the
<a href="function.sqlite-escape-string.php" class="function">sqlite_escape_string()</a>. You should normally leave this
value at its default, unless you are interoperating with databases created by
other sqlite capable applications.</p>
</dd>
</dl>
<p>
</p>
</div>
<a name="function.sqlite-column.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns the column value.
</p>
</div>
<a name="function.sqlite-column.notes"></a><div class="refsect1 notes">
<h3 class="title">Notes</h3>
<blockquote><p><b class="note">Note</b>:
Use this function when you are iterating a large result set with many
columns, or with columns that contain large amounts of data.
<br />
</p></blockquote>
</div>
<a name="function.sqlite-column.seealso"></a><div class="refsect1 seealso">
<h3 class="title">See Also</h3>
<p class="para">
</p><ul class="simplelist">
<li class="member"><a href="function.sqlite-fetch-string.php" class="function" rel="rdfs-seeAlso">sqlite_fetch_string()</a> - Alias of sqlite_fetch_single</li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>