Re: [PHP4BETA] Session: objects containing objects

From: Date: Thu, 24 Feb 2000 20:02:48 +0000
Subject: Re: [PHP4BETA] Session: objects containing objects
References: 1 2 3 4 5 6 7 8 9  Groups: php.version4 
Request: Send a blank email to php-version4+get-10895@lists.php.net to get a copy of this message
On Thu, 24 Feb 2000, Ulf Wendel wrote: > Definetly all class properties. PHP does not strictly distingush > beetween public, private, static, final (undeclared, accidentially) > data. So it's logical that the new function does not distinguish > beetween the different favours. It just shows the current state. If it's > possible to distinguish beetween the different flavours I'd prefer to > have several functions. But this lead to far for PHP4. class foo { var $bar; } $a = new foo; get_class_vars($a); // will return array("bar"). $a->baz = 1; get_class_vars($a); // will return array("bar", "baz") See the difference? Default properties are those that are defined at class declaration time. Then you can also add other properties. -Andrei Some people try to achieve immortality through their work, others through their children. I hope to achieve immortality by not dying. -- Woody Allen

« previous php.version4 (#10895) next »