PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

PDOStatement->getAttribute> <PDOStatement->fetchColumn
Last updated: Fri, 10 Oct 2008

view this page in

PDOStatement->fetchObject

(No version information available, might be only in CVS)

PDOStatement->fetchObject次の行を取得し、それをオブジェクトとして返す

説明

mixed PDOStatement::fetchObject ([ string $class_name [, array $ctor_args ]] )

次の行を取得し、それをオブジェクトとして返します。この関数は、 PDOStatement::fetch()PDO::FETCH_CLASS あるいは PDO::FETCH_OBJ を指定することの代替関数となります。

パラメータ

class_name

作成されるクラスの名前。デフォルトは stdClass

ctor_args

この配列の要素がコンストラクタに渡されます。

返り値

カラム名に対応するプロパティを保持する、要求されたクラスの インスタンスを返します。エラーが発生した場合は FALSE を返します。



add a note add a note User Contributed Notes
PDOStatement->fetchObject
There are no user contributed notes for this page.

PDOStatement->getAttribute> <PDOStatement->fetchColumn
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites