You are here: Re: [PHP] Re: OOP Newbie - why does this not work? « PHP « IT news, forums, messages
Re: [PHP] Re: OOP Newbie - why does this not work?

Posted by Jochem Maas on 10/21/05 17:31

Nathan Tobik wrote:
> You have to show us the definition for your class, also your syntax for
> new is wrong. It should be:
>
> $liveclass = new Test();

it can also be (if you have nothing to pass to the constructor function):

$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" ;
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация