Re: PDO suggestion
| From: | Wez Furlong | Date: | Wed, 23 Feb 2005 16:08:40 +0000 |
| Subject: | Re: PDO suggestion | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2052@lists.php.net to get a copy of this message | ||
Marcus added a PDO_FETCH_FUNC mode to CVS over the last day or so:
$foo = $stmt->fetchAll(PDO_FETCH_FUNC, 'your_callback_function');
--Wez.
On Wed, 23 Feb 2005 09:36:57 -0600, Richard Thomas <lists@cyberlot.net> wrote:
> On PDOStatement::fetchAll
>
> Love this function, just have one idea. Often I run into the need to do
> some formatting or otherwise handle the data returned.
>
> Instead of having to run fetchAll, then looping through the results and
> making the changes, being able to set a callback function to be run on
> each row gathered would be nice.
>
> --
> Richard Thomas - CEO
> Cyberlot Technologies Group Inc.
> 507.398.4124 - Voice
>
> --
> PECL development discussion Mailing List (http://pecl.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>