DB_DataObject - using foreach instead of while
| From: | Noel da Costa | Date: | Mon, 21 Aug 2006 16:57:20 +0000 |
| Subject: | DB_DataObject - using foreach instead of while | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24929@lists.php.net to get a copy of this message | ||
Hi there,
The syntax examples for DB_DataObject show how to use a while loop with ->fetch() to iterate over records.
Is there a way of doing this using a foreach loop instead? I'm trying to optimize speed here.
Kind Regards,
Noel da Costa
Lead Developer
Magnet Harlequin
T: 01895 432400
M: 07989 578078
F: 01895 432444
E: noel.dacosta@magharl.co.uk
W: http://www.magharl.co.uk
This e-mail is intended solely for the addressees named above and any other
use is prohibited. Access to this email by anyone else is unauthorised. It
may contain confidential information. If you have received this e-mail in
error, please contact the sender by return e-mail. We do not accept legal
responsibility for the contents of this message if it has reached you via
the internet. Any opinions expressed are those of the author and are not
necessarily endorsed by the company. Recipients are advised to apply their
own virus check to this message and all incoming e-mail on delivery.