Vidyalelo
PHP · Q61

Object Oriented Concept

Programming · PHP · question 61

Q61

Which one of the following functions is used to determine object type?

A.
obj_type()
B.
type()
C.
is_a()
Answer
D.
is_obj()

Answer: Option C

Solution

Answer: Option C
Solution:
The is_a() function returns true if object belongs to a class type or if it belongs to a class that is a child of that class. Or else false is returned.