instantiating objects
| From: | Beau Hartshorne | Date: | Thu, 06 Feb 2003 16:57:17 +0000 |
| Subject: | instantiating objects | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-134645@lists.php.net to get a copy of this message | ||
I'm just starting to use PEAR, and have seen several ways of
instantiating the PEAR objects:
$form = new HTML_QuickForm();
$form =& new HTML_QuickForm();
$dbh = DB:connect("dsn");
$dbh = new DB();
$mail_object =& Mail::factory('sendmail', $params);
Can anyone explain (or point to dome docs that explain) what the
differences are, and when I should be using which method to work with
PEAR objects?
Thank you,
Beau