Examveda
Examveda

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()

Answer: Option B

Solution(By Examveda Team)

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.

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept