Re: [PHP] Class Instance Inheritance

2004-09-13 Thread John Holmes
From: "Gerard Samuel" <[EMAIL PROTECTED]> Is it possible for a class to extend the state of its parent class? In the example provided, I was hoping for the statement to say -> "I wish 10 equals to 10" If there is a solution, I would like it to work with php 4+ Thanks - class foo { var $foo

RE: [PHP] Class Instance Inheritance

2004-09-13 Thread Ed Lazor
Here's one way, but this may not be completely what you want because the value of variable foo doesn't change. -Ed Class foo { Static $foo; Function foo() { $this->foo = 10; } } > -Original Message- > From: Gerard Samuel [mailto:[EMAIL PROTECT