Vidyalelo
PHP · Q93

Object Oriented Concept

Programming · PHP · question 93

Q93

Which class accepts a class name or an object reference and returns an array of interface name?

A.
class_implements()
Answer
B.
is_subclass()
C.
is_subclass_of()
D.
class_interface()

Answer: Option A

Solution

Answer: Option A
Solution:
is_subclass_of() will tell you only about class inheritance relationships. It will not tell you that a class implements an interface.