HTML_QuickForm::createElement(): static or not?

From: Date: Thu, 22 May 2003 17:42:32 +0000
Subject: HTML_QuickForm::createElement(): static or not?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5554@lists.php.net to get a copy of this message
If I have created a form with something like $form = new HTML_QuickForm('myform'); Is there any difference if I create an element with $element =& HTML_QuickForm::createElement('text','name'); or $element =& $form->createElement('text','name'); ? Also, under PHP 5 is it OK to call createElement() without the =&? (Just $element = $form->createElement()) Thanks, David

« previous php.pear.general (#5554) next »