Vidyalelo
PHP · Q86

Object Oriented Concept

Programming · PHP · question 86

Q86

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()
Answer
C.
exist()
D.
exists_class()

Answer: Option B

Solution

Answer: Option B
Solution:
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.