Source of: /manual/en/pdostatement.getattribute.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.pdostatement.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'pdostatement.getattribute.php',
1 => 'PDOStatement->getAttribute',
),
'up' =>
array (
0 => 'class.pdostatement.php',
1 => 'The PDOStatement class',
),
'prev' =>
array (
0 => 'pdostatement.fetchobject.php',
1 => 'PDOStatement->fetchObject',
),
'next' =>
array (
0 => 'pdostatement.getcolumnmeta.php',
1 => 'PDOStatement->getColumnMeta',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="pdostatement.getattribute" class="refentry">
<div class="refnamediv">
<h1 class="refname">PDOStatement->getAttribute</h1>
<p class="verinfo">(PHP 5 >= 5.1.0, PECL pdo >= 0.2.0)</p><p class="refpurpose"><span class="refname">PDOStatement->getAttribute</span> — <span class="dc-title">
Retrieve a statement attribute
</span></p>
</div>
<a name="pdostatement.getattribute.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>PDOStatement::getAttribute</b></span>
( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$attribute</tt></span>
)</div>
<p class="para rdfs-comment">
Gets an attribute of the statement. Currently, no generic attributes exist but only driver specific:
</p><ul class="itemizedlist">
<li class="listitem"><p class="para"><i>PDO::ATTR_CURSOR_NAME</i>
(Firebird and ODBC specific):
Get the name of cursor for <i>UPDATE ... WHERE CURRENT OF</i>.
</p></li>
</ul><p>
</p>
</div>
<a name="pdostatement.getattribute.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns the attribute value.
</p>
</div>
<a name="pdostatement.getattribute.seealso"></a><div class="refsect1 seealso">
<h3 class="title">See Also</h3>
<p class="para">
</p><ul class="simplelist">
<li class="member"><a href="pdo.getattribute.php" class="function" rel="rdfs-seeAlso">PDO::getAttribute()</a> - Retrieve a database connection attribute</li>
<li class="member"><a href="pdo.setattribute.php" class="function" rel="rdfs-seeAlso">PDO::setAttribute()</a> - Set an attribute</li>
<li class="member"><a href="pdostatement.setattribute.php" class="function" rel="rdfs-seeAlso">PDOStatement::setAttribute()</a> - Set a statement attribute</li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>