array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'class.pdostatement.php', 1 => 'PDOStatement', ), 'up' => array ( 0 => 'book.pdo.php', 1 => 'PDO', ), 'prev' => array ( 0 => 'pdo.setattribute.php', 1 => 'PDO::setAttribute', ), 'next' => array ( 0 => 'pdostatement.bindcolumn.php', 1 => 'PDOStatement::bindColumn', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/pdo/pdostatement.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.pdostatement.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 1.0.0)
Represents a prepared statement and, after the statement is executed, an associated result set.
$column
,&$var
,$type
= PDO::PARAM_STR,$maxLength
= 0,$driverOptions
= null
$param
,&$var
,$type
= PDO::PARAM_STR,$maxLength
= 0,$driverOptions
= null
$mode
= PDO::FETCH_DEFAULT, int $cursorOrientation
= PDO::FETCH_ORI_NEXT, int $cursorOffset
= 0): mixedUsed query string.
Version | Description |
---|---|
8.0.0 | PDOStatement implements IteratorAggregate now instead of Traversable. |