PDOStatement::fetchObject()
| From: | Dan Scott | Date: | Mon, 14 Feb 2005 15:56:47 +0000 |
| Subject: | PDOStatement::fetchObject() | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-1985@lists.php.net to get a copy of this message | ||
I asked on #php.pecl how PDOStatement::fetchObject() differs from
PDOStatement::fetch(PDO_FETCH_OBJ); Wez said "it's more like
PDO_FETCH_CLASS, but you can pass arbitrary parameters to the
constructor on each call or even different class names".
I think I'll need some good examples to help sort those ones out in the docs.
Helly, do you have any examples of where you would use
PDOStatement::fetchObject() versus
PDOStatement::fetch(PDO_FETCH_CLASS) or
PDOStatemet::fetch(PDO_FETCH_OBJ)? I want to really nail the
differences down, because I'm afraid that if we don't do a good job in
the docs there will be some confusion for end users...
Thanks,
Dan