Source of: /manual/en/function.odbc-fetch-object.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.uodbc.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'function.odbc-fetch-object.php',
1 => 'odbc_fetch_object',
),
'up' =>
array (
0 => 'ref.uodbc.php',
1 => 'ODBC Functions',
),
'prev' =>
array (
0 => 'function.odbc-fetch-into.php',
1 => 'odbc_fetch_into',
),
'next' =>
array (
0 => 'function.odbc-fetch-row.php',
1 => 'odbc_fetch_row',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.odbc-fetch-object" class="refentry">
<div class="refnamediv">
<h1 class="refname">odbc_fetch_object</h1>
<p class="verinfo">(PHP 4 >= 4.0.2, PHP 5)</p><p class="refpurpose"><span class="refname">odbc_fetch_object</span> — <span class="dc-title">Fetch a result row as an object</span></p>
</div>
<a name="function.odbc-fetch-object.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type">object</span> <span class="methodname"><b>odbc_fetch_object</b></span>
( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$result</tt></span>
[, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$rownumber</tt></span>
] )</div>
<p class="para rdfs-comment">
Fetch an <a href="language.types.object.php" class="type object">object</a> from an ODBC query. See the changelog below
for when this function is available.
</p>
</div>
<a name="function.odbc-fetch-object.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 result resource from <a href="function.odbc-exec.php" class="function">odbc_exec()</a>.
</p>
</dd>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">rownumber</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
Optionally choose which row number to retrieve.
</p>
</dd>
</dl>
<p>
</p>
</div>
<a name="function.odbc-fetch-object.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns an object that corresponds to the fetched row, or <b><tt class="constant">FALSE</tt></b> if there
are no more rows.
</p>
</div>
<a name="function.odbc-fetch-object.changelog"></a><div class="refsect1 changelog">
<h3 class="title">Changelog</h3>
<p class="para">
</p><table class="doctable informaltable">
<thead valign="middle">
<tr valign="middle">
<th>Version</th>
<th>Description</th>
</tr>
</thead>
<tbody valign="middle" class="tbody">
<tr valign="middle">
<td align="left">4.3.3</td>
<td align="left">
This function exists when compiled with IBM DB2 or UnixODBC support.
</td>
</tr>
<tr valign="middle">
<td align="left">4.3.2</td>
<td align="left">
This function exists when compiled for Windows.
</td>
</tr>
<tr valign="middle">
<td align="left">4.0.2</td>
<td align="left">
This function exists when compiled with DBMaker support.
</td>
</tr>
</tbody>
</table>
<p>
</p>
</div>
<a name="function.odbc-fetch-object.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.odbc-fetch-row.php" class="function" rel="rdfs-seeAlso">odbc_fetch_row()</a> - Fetch a row</li>
<li class="member"><a href="function.odbc-fetch-array.php" class="function" rel="rdfs-seeAlso">odbc_fetch_array()</a> - Fetch a result row as an associative array</li>
<li class="member"><a href="function.odbc-num-rows.php" class="function" rel="rdfs-seeAlso">odbc_num_rows()</a> - Number of rows in a result</li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>