According to the CHM manual:

"Sometimes it is useful to refer to functions and variables in base classes
or to refer to functions in classes that have not yet any instances.:

Using parent::foo() works fine but I am having problems getting the variable
part of this to work.
For Example:

class A {
        var $b
        A() {
          $b = "something";
        }
}

class B extends A {
        B() {
                echo parent::$b // this is the problem
        }
}

Is there not a way to refer directly to the parent properties?  Or do i have
to setup a get function for every parent var that I want to access.

Thanks

-Jared


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to