Date: 07/05/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5403 Updated: String conversion to integer is incorrect"
- Previous message: Kristian Köhntopp: "Re: [PHP-DEV] adding objects with + equal to array process"
- In reply to: waldschrott: "Re: [PHP-DEV] RE:Class::? - accessing data, no success..."
- Next in thread: waldschrott: "Re: [PHP-DEV] RE:Class::? - accessing data, no success..."
- Reply: waldschrott: "Re: [PHP-DEV] RE:Class::? - accessing data, no success..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5403 Updated: String conversion to integer is incorrect"
- Previous message: Kristian Köhntopp: "Re: [PHP-DEV] adding objects with + equal to array process"
- In reply to: waldschrott: "Re: [PHP-DEV] RE:Class::? - accessing data, no success..."
- Next in thread: waldschrott: "Re: [PHP-DEV] RE:Class::? - accessing data, no success..."
- Reply: waldschrott: "Re: [PHP-DEV] RE:Class::? - accessing data, no success..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

