Posted by Blackwater Dev on 04/19/05 18:30
Hello,
Running this code in Zend studio returns string(3) "mom";
class grandparent{
};
class mom extends grandparent{
};
class son extends mom{
};
echo var_dump(get_parent_class("son"));
However, the Zend certification book has a question like this and says
it should return grandparent...which is correct?
Thanks!
[Back to original message]
|