1.

Which class accepts a class name or an object reference and returns an array of interface name?(a) class_implements()(b) is_subclass()(c) is_subclass_of()(d) class_interface()The question was posed to me in class test.Query is from Object Tools in section Object Tools and Design and Variables in PHP of PHP

Answer»

The correct option is (a) class_implements()

For explanation: is_subclass_of() will tell you only about CLASS inheritance RELATIONSHIPS. It will not tell you that a class IMPLEMENTS an interface.



Discussion

No Comment Found

Related InterviewSolutions