PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Bug #3184

Typo in sample code in PEAR::DB_DataObject

Details

Submitted2005-01-13 07:24 UTC
Fromlarry at garfieldtech dot com
Assignedalan_k
StatusClosed
PackageDocumentation
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[2005-01-13 07:24 UTC] larry at garfieldtech dot com

Description:
------------
On page:
http://pear.php.net/manual/en/package.database.db-dataobject.db-dataobject.limit.php

the sample code at the bottom of the page includes this
block:

while ($person->fetch()) {
echo "$person->id} {$person->name}<BR>";
}

That is a typo. The line should read:

echo "{$person->id} {$person->name}<BR>";

(Note the extra { before $person).