Re: RE:Class::? - accessing data, no success...

From: Date: Wed, 05 Jul 2000 13:56:06 +0000
Subject: Re: RE:Class::? - accessing data, no success...
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-23580@lists.php.net to get a copy of this message
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/

« previous php.dev (#23580) next »