1.

Which one of the following functions will you use to check that the class exists before you work with it?(a) class_exist()(b) class_exists()(c) exist()(d) exists_class()I had been asked this question in an interview for job.I'd like to ask this question from Object Tools in section Object Tools and Design and Variables in PHP of PHP

Answer»

Right choice is (b) class_exists()

To elaborate: The class_exists() function accepts a string representing the class to CHECK for and RETURNS a Boolean true VALUE if the class exists and false OTHERWISE.



Discussion

No Comment Found

Related InterviewSolutions