You are here: Re: Properties in PHP 5 « All PHP « IT news, forums, messages
Re: Properties in PHP 5

Posted by Norman Peelman on 10/08/34 11:19

"Tony Mays" <tony@nospam.com> wrote in message
news:%c6ue.20507$iG5.12605@fed1read05...
> I am new to PHP and still learning and I have a question concerning
classes
> and properties in PHP Version 5.
>
> if I do the following:
>
> class TSample
> {
> }
>
> $obj = new TSample();
> $obj->Name = "Tony";
> echo $obj->Name;
>
> Tony is displayed in the browser. Is this normal behavior? If so, why?
>
> best regards,
>
> Tony Mays

What is it that you don't understand? You have created the class, assigned
a value, then printed it.

Norm
---
FREE Avatar hosting at www.easyavatar.com

 

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

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