You are here: Re: difference between var and private in a class « PHP Programming Language « IT news, forums, messages
Re: difference between var and private in a class

Posted by palle on 01/23/07 11:38

Bosconian wrote:
> I've looked everywhere (including php.net) and can't seem to find the answer
> to this simple question.
>
> What's the difference between var and private when initializing a variable
> in a class?
>
> For example:
>
> class myClass {
>
> var $var1;
> private $var2;
>


var is used in PHP4
it is still supported in PHP5, and is equal to public

 

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

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