Re: [PHP-DEV] RE:Class::? - accessing data, no success... From: Kristian Köhntopp (kk <email protected>)
Date: 07/05/00

waldschrott wrote:
> KK> No, not an initializer. Class variables are part of the
> KK> class. They do not double as initalizers for the instance.
>
> But for PHP they do!?
>
> class a {
> var $i=3; }
> $a = new a;
> print $a->i;

That is different from what I defined a class variable is.
What you have here is an instance variable (or object variable,
if you like to call it that way), which has an initializer.

Kristian

-- 
Kristian Köhntopp, NetUSE AG Siemenswall, D-24107 Kiel
Tel: +49 431 386 436 00, Fax: +49 431 386 435 99
Using PHP3? See our web development library at http://phplib.netuse.de/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>