I tried this and I get an error when I try to instantiate class "first" inside of class "second".
The commented sections inside of class "second" cause errors.
class first {
    public $a;
    function __construct() {
        $this->a = 'a';
    }
}
class second {
    //$fst = new first();
    //public showfirst() {
        //$firsta = $this->first->a;
    //  echo "Here is first \$a: " . $firsta;
    //}
}
EDIT:
This results in a server error even though all I have in class "second" is the instantiation of class "first".
class second {
    $fst = new first();
    //public showfirsta() {
    //  $firsta = $this->fst->a;
    //  echo "Here is first \$a: " . $firsta;
    //}
}
 
     
     
     
    