1.

If you call a method and it doesn’t exist it’ll cause a problem. To check the method which function will you use?(a) _method()(b) methodexists()(c) is_callable()(d) is_method()I got this question in exam.My question is taken from Object Tools in section Object Tools and Design and Variables in PHP of PHP

Answer»

Right ANSWER is (C) is_callable()

The explanation is: There is another method which you can USE – method_exists() for SIMILAR purpose.



Discussion

No Comment Found

Related InterviewSolutions