I'm new to the extends classes and am having a little trouble with is issue. I'm trying to get a variable initiated by use of a different function then the construct. It should make more sense if you look below.
class A
{
private static $_var;
function __construct($EGGS)
{
$this->_var=$EGGS
}
private static function _ini()
{
$this->_var="hard coded value";
}
}
class B extends A
{
//How do I initiate private static $_var with the _ini() instead of using
//the __construct here in good old class B?
}
$a = new A("foo");//works just fine
$b = new B;