Reputation: 453
For example:
class A {}
class B extends A {}
Are there any function like is_a('B', 'A')
to check not object, but class inheritance?
Thanks.
Upvotes: 1
Views: 61
Reputation: 2112
Yes there is. You were almost right: Here is the link:
http://php.net/manual/en/function.is-a.php
Upvotes: 4