I need to determine, after all files have been included, which classes extend a parent class, so:
class foo{
}
class boo extends foo{
}
class bar extends foo{
}
and I’d like to be able to grab an array like:
array('boo','bar');
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you need that, it really smells like bad code, the base class shouldn’t need to know this.
However, if you definitions have been included (i.e. you don’t need to include new files with classes you possibly have), you could run: