RE: [PHP] Re: OOP Newbie - why does this not work?

From: Date: Fri, 21 Oct 2005 13:38:41 +0000
Subject: RE: [PHP] Re: OOP Newbie - why does this not work?
Groups: php.general 
Request: Send a blank email to php-general+get-224401@lists.php.net to get a copy of this message
You have to show us the definition for your class, also your syntax for new is wrong. It should be: $liveclass = new Test(); Nate Tobik (412)661-5700 x206 VigilantMinds -----Original Message----- From: John Taylor-Johnston [mailto:John.Taylor-Johnston@cegepsherbrooke.qc.ca] Sent: Friday, October 21, 2005 7:57 AM To: php-general@lists.php.net Subject: [PHP] Re: OOP Newbie - why does this not work? Here,s my guess: > var $liveclass; > $liveclass = new(Test); > echo $liveclass->get() ; > echo "<BR>" ; > echo "This is in the php code block" ; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#224401) next »