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 #2626

missing line and typo in db_object example

Details

Submitted2004-10-26 19:28 UTC
Frombram dot daams at fcdonders dot ru dot nl
Assignedalan_k
StatusClosed
PackageDocumentation
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2004-10-26 19:28 UTC] bram dot daams at fcdonders dot ru dot nl

Description:
------------
On http://pear.php.net/manual/en/package.database.db-dataobject.intro-purpose.php there is a typo in code example 26-3:

// now get the person and display the age.
$person ->name = "John";

should be:

// now get the person and display the age.
$person = new MyPerson;
$person->name = "John";

(note the space)